Dockerfiles for creating PHP images with Composer and common extensions. See Docker Hub for more details about the images.
7.3-cli-alpine
(Dockerfile)7.3-cli-stretch
(Dockerfile)7.3-fpm-alpine
(Dockerfile)7.3-fpm-stretch
(Dockerfile)7.2-cli-alpine
(Dockerfile)7.2-cli-stretch
(Dockerfile)7.2-fpm-alpine
(Dockerfile)7.2-fpm-stretch
(Dockerfile)7.1-cli-alpine
(Dockerfile)7.1-cli-stretch
(Dockerfile)7.1-fpm-alpine
(Dockerfile)7.1-fpm-stretch
(Dockerfile)7.0-cli-alpine
(Dockerfile)7.0-cli-stretch
(Dockerfile)7.0-fpm-alpine
(Dockerfile)7.0-fpm-stretch
(Dockerfile)5.6-cli-alpine
(Dockerfile)5.6-cli-stretch
(Dockerfile)5.6-fpm-alpine
(Dockerfile)5.6-fpm-stretch
(Dockerfile)
All variants has Composer preinstalled, using a production ready php.ini and have these preinstalled PHP extensions:
- bcmath
- bz2
- calendar
- iconv
- intl
- gd
- mbstring
- mcrypt (only PHP ≤ 7.1)
- mysqli
- pdo_mysql
- soap
- zip
This variant contains the PHP CLI tool with default mods. If you need a web server, this is probably not the image you are looking for. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as a base from which to build other images. Cron is also installed to use this container as a sidecar for scheduled tasks.
This variant contains PHP-FPM, which is a FastCGI implementation for PHP.