Nginx Dockerfile. Also published to public Docker Registry.
Install Docker
Download image from public Docker Registry:
docker pull dockerize/nginx
or build an image from the Dockerfile:
docker build -t dockerize/nginx github.com/dockerize/nginx
docker run -d -p 80:80 dockerize/nginx
docker run -d -p 80:80 -p 443:443 -v <sites-enabled-dir>:/etc/nginx/sites-enabled -v <content-dir>:/var/www/html -v <log-dir>:/var/log/nginx -v <certs-dir>:/etc/nginx/certs dockerize/nginx
After few seconds, open http://localhost to see the result.
Content type
Image
Digest
sha256:fb30ea30a…
Size
182.7 MB
Last updated
almost 11 years ago
docker pull dockerize/nginx