Automated build for docker-php image
1M+
This repository provides Docker images for multiple PHP versions, configured for development and testing environments. Each image includes support for various PHP extensions and tools.
| Tag | PHP Version | Base OS |
|---|---|---|
7.1 | PHP 7.1 | Debian Buster |
7.2 | PHP 7.2 | Debian Buster |
7.3 | PHP 7.3 | Debian Buster |
7.4 | PHP 7.4 | Debian Buster |
8.0 | PHP 8.0 | Debian Bullseye |
8.1 | PHP 8.1 | Debian Bullseye |
8.2 | PHP 8.2 | Debian Bullseye |
8.3 | PHP 8.3 | Debian Bookworm |
8.4 | PHP 8.4 | Debian Bookworm |
8.5, latest | PHP 8.5 | Debian Bookworm |
php-fpm as the process manager.linux/amd64 and linux/arm64.docker pull vadymsemeniuk/docker-php:8.4
docker pull vadymsemeniuk/docker-php:7.4
docker build -f DockerFile-84 -t vadymsemeniuk/docker-php:8.4 .
Customize the image using the following optional build arguments:
| Argument | Description | Default |
|---|---|---|
INSTALL_SOAP | Enable SOAP extension | false |
INSTALL_XDEBUG | Enable xDebug extension | false |
INSTALL_PHPREDIS | Enable Redis extension | false |
INSTALL_BCMATH | Enable BCMath extension | false |
INSTALL_MEMCACHED | Enable Memcached extension | false |
INSTALL_OPCACHE | Enable Opcache extension | false |
INSTALL_MYSQLI | Enable MySQLi extension | false |
INSTALL_INTL | Enable Intl extension | false |
Note:
INSTALL_AEROSPIKEis only available in the7.1image. The Aerospike PHP client does not support PHP 7.2+.
Example:
docker build -f DockerFile-84 \
--build-arg INSTALL_XDEBUG=true \
--build-arg INSTALL_OPCACHE=true \
-t vadymsemeniuk/docker-php:8.4 .
docker run -d -p 9000:9000 -v $(pwd):/var/www vadymsemeniuk/docker-php:8.4
Use the provided script to build and push all versions with multi-arch support:
./build-and-push.sh
This builds all tags for linux/amd64 and linux/arm64 and pushes them to Docker Hub.
The following configuration files are included and mounted into the container:
configs/php.iniconfigs/php-fpm.pool.confconfigs/xdebug.iniconfigs/opcache.iniThis Docker image is licensed under the MIT License.
For issues or contributions, feel free to open an issue or submit a pull request.
Content type
Image
Digest
sha256:db4b65d70…
Size
176.4 MB
Last updated
4 months ago
docker pull vadymsemeniuk/docker-php