For complete list of tags see Docker Hub.
For Documentation please refer to PHP official repo.
- Composer installed
-
.htaccessenabled -
TZenv -
HOST_IDandHOST_GIDenv for permission issues related to cross-container volume mounting (e.g. sftp and ssh containers) -
COMPOSER_DIRandCOMPOSER_DIRSenv for composer install at startup, to fix overwriting ofvendordirectory when mounting a volume - Pre-installed PHP extensions
- mysqli
- pdo
- pdo_mysql
- zip
- intl
- opcache
- xml
| Docker Environment | Description |
|---|---|
TZ |
Set the System Timezone |
PWD |
The Container Workdir (/var/www/html) |
HOST_ID |
The Container User ID |
HOST_GID |
The Container Group ID |
INI_ENV |
Use development or production .ini file (default to production) |
COMPOSER_DIR |
Composer install directory, can be absolute or relative to PWD |
COMPOSER_DIRS |
Composer install directories separated by space, can be absolute or relative to PWD |
If you have manually configured php.ini, you can replace the default .ini files.
FROM lighty262/php:latest-apache
COPY php.ini /usr/local/etc/php/php.ini-development
COPY php.ini /usr/local/etc/php/php.ini-production
COPY php.ini /usr/local/etc/php/php.ini