Fix NGINX data path

This commit is contained in:
Tianon Gravi 2014-09-26 14:24:21 -06:00
parent 30a7af19ab
commit 7a0c5d0a2b
1 changed files with 2 additions and 2 deletions

View File

@ -8,12 +8,12 @@ Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP, H
## hosting some simple static content
docker run --name some-nginx -v /some/content:/usr/local/nginx/html:ro -d nginx
docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary content (which is a much cleaner solution than the bind mount above):
FROM nginx
COPY static-html-directory /usr/local/nginx/html
COPY static-html-directory /usr/share/nginx/html
Place this file in the same directory as your directory of content ("static-html-directory"), run `docker build -t some-content-nginx .`, then start your container: