1
0
mirror of https://github.com/rlister/dockerfiles.git synced 2025-12-12 17:26:15 +00:00
This commit is contained in:
Richard Lister
2015-01-21 00:44:04 -05:00
parent 9bb012b4c2
commit 48ab114d02

21
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM debian:jessie
MAINTAINER Ric Lister, rlister@gmail.com
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -yq nginx && \
rm -rf /var/lib/apt/lists/*
## clean up unwanted configs
RUN rm /etc/nginx/sites-enabled/default
## run in foreground
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
## log to stdout
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log
EXPOSE 80 443
CMD [ "nginx" ]