This repository contains a Dockerfile to build a Docker Image with PHP 7.x + PHP-FPM + Nginx compiled from the sources.
-
Install Docker.
-
To create the image zokeber/docker-pfn, clone this repository, replace variables for you preference and execute the following command on the docker-pfn folder:
docker build --build-arg DOMAIN=app.domain.com --build-arg NGINX=1.10.3 --build-arg PHP=7.0.17 -t zokeber/pfn:latest .
Create container:
docker create -it -p 80:80 --restart=always --name php7-fpm-nginx -h php7-fpm-nginx zokeber/pfn
Start container:
docker start php7-fpm-nginx
docker exec -it php7-fpm-nginx bash