Disclaimer: This image is intended for development purposes. Do not use in production and create your own based on the official but with only the libraries you need. Use the Dockerfiles as an example of how to install the libraries in different ways.
Based on official php images but including composer and following extensions:
- gd
- zip
- exif
- mysqli
- pgsql
- pdo
- pdo_mysql
- pdo_pgsql
- soap
- imagick
- xmlrpc
- bcmath
- mbstring
The default apache docroot is /var/www/html/public
this makes that most of the frameworks
works by default when copying them to /var/www/html
.
If you are using tools like wordpress that doesn't include the public on their file structure
just copy the content inside /var/www/html/public
.
The config file is placed on /etc/apache2/apache2.conf
.
It goes with all PHP distribution defaults except for memory which it defaults to 512MB.
The config file is placed on /usr/local/etc/php/conf.d/docker-php-memlimit.ini
.