1. Christopher De Vries
  2. docker-nginx


Christopher De Vries  committed 8d820ad

Initial commit of docker image

  • Participants
  • Branches master

Comments (0)

Files changed (3)

File .gitignore

View file

File Dockerfile

View file
+FROM ubuntu:14.04
+MAINTAINER Christopher De Vries <devries@idolstarastronomer.com>
+RUN apt-get update && apt-get install -y nginx && apt-get clean
+RUN sed "s/access_log\s*[^;]*/access_log \/dev\/stdout/g" -i /etc/nginx/nginx.conf
+RUN sed "s/error_log\s*[^;]*/error_log \/dev\/stdout/g" -i /etc/nginx/nginx.conf
+RUN echo "daemon off;" >> /etc/nginx/nginx.conf
+CMD ["/usr/sbin/nginx"]

File README.md

View file
+# Bottle Base Docker Image
+The Dockerfile included in the repository creates an image based on the
+ubuntu14.04 image with nginx installed. 
+The file `/etc/nginx/nginx.conf` is modified to turn off daemon mode and to
+log the access_log and error_log to stdout. Ports 80 and 443 are exposed by
+You can serve static content by attaching a volume of content from the host to
+the container, i.e.:
+docker run -v /path/to/content:/usr/share/nginx/html -p -d devries/nginx
+You can use the container with a custom proxy configuration by putting proxy
+info in a directory and using that directory as the `sites-enabled` location
+in the container, i.e.:
+docker run -v /path/to/proxy/config/directory:/etc/nginx/sites-enabled -p -d devries/nginx