Combine the official nginx and php-fpm images

GitHub

Docker Hub

Support Tags

TagsNginxPHP
latest1.14.27.3.0
7.31.14.27.3.0
7.21.14.27.2.13

Build Docker images

docker build -t tanghengzhi/nginx-php-fpm .

docker build -f 7.3/Dockerfile -t tanghengzhi/nginx-php-fpm:7.3

docker build -f 7.2/Dockerfile -t tanghengzhi/nginx-php-fpm:7.2

Push Docker images to Docker Cloud

docker push tanghengzhi/nginx-php-fpm

docker push tanghengzhi/nginx-php-fpm:7.3

docker push tanghengzhi/nginx-php-fpm:7.2

Automated Builds

Build configurations
Automated Builds

参考:

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
https://github.com/nginxinc/docker-nginx/blob/1fe92b86a3c3a6482c54a0858d1fcb22e591279f/stable/stretch/Dockerfile
https://github.com/docker-library/php/blob/b99209cc078ebb7bf4614e870c2d69e0b3bed399/7.2/stretch/fpm/Dockerfile
https://docs.docker.com/config/containers/multi-service_container/
https://docs.docker.com/docker-cloud/builds/automated-build/

 882 total views,  1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *