Dockerfiles for building nginx images on various base OS images
-
-
Get the image (using the Centos tag in this example)
docker pull nickmich/nginx:centos
-
Run the container
docker run --nginx-static -d -p 8777:8777 -v <directory-of-nginx-config>:/opt/nginx -v <directory-of-static-files>:/var/nginx nickmich/nginx:centos
-