This Dockerfile sets up a PHP 8.3.11 Apache environment and installs HumHub 1.16.2.
Important
This Dockerfile & the Docker Image that is created will be discontinued as of September 12th 2024.
Operating Systems | Status |
---|---|
Linux | |
MacOS | TBA |
Windows | TBA |
-
Base Image: Uses
php:8.3.11-apache
as the base image. -
Dependencies Installation:
- Installs necessary packages via
apt-get
. - Configures PHP extensions for
gd
,mysqli
,pdo
,zip
,intl
,ldap
,pgsql
,mbstring
,exif
,imagick
,apcu
, and more.
- Installs necessary packages via
-
HumHub Installation:
- Downloads HumHub version 1.16.2 using
curl
. - Unzips the downloaded file to
/tmp/humhub_folder
. - Copies HumHub contents to
/var/www/html
. - Adjusts ownership and permissions for
/var/www/html
. - Cleans up downloaded files and temporary folders.
- Downloads HumHub version 1.16.2 using
-
Custom Apache Configuration:
- Copies custom Apache configuration files to the appropriate locations.
- Enables the custom configuration.
-
Exposing Ports:
- Exposes ports
80
and443
for HTTP and HTTPS traffic.
- Exposes ports
-
Working Directory:
- Sets
/var/www/html
as the working directory.
- Sets
-
Healthcheck:
- Includes a healthcheck to monitor the status of the container.
-
Starting Service:
- Initiates the Apache & Cron services using
apache2-foreground
&service cron start
.
- Initiates the Apache & Cron services using
Build the Docker image using the provided Dockerfile:
docker build -t humhub-docker .
If you enjoy our work please consider donating.