This Dockerfile contain PHP7.2 and lastest Nginx version base on Ubuntu16.04.
Notice: It's just for test.
git clone git@github.com:aisuhua/docker-php-nginx.git
cd docker-php-nginx
docker build -t phpdev .
After built the image,you can check it:
docker images
Basic usage.
docker run -d --name php72 -v /path/to/project:/www/web -p 80:80 phpdev
Get into the container
docker exec -i -t php72 /bin/bash
You can clear the container and start a new container again.
docker rm -f php72
Check the status of PHP and Nginx.