Skip to content

Commit

Permalink
Update the Dockerfile for the assignment
Browse files Browse the repository at this point in the history
[refs #d8b6ba92fa7e]
  • Loading branch information
jfahrer committed May 5, 2018
1 parent 25cae6a commit 33d2958
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions nginx/Dockerfile
@@ -1,12 +1,14 @@
FROM debian:buster-slim

RUN apt-get update
RUN apt-get install -y nginx
RUN rm /var/log/nginx/access.log && ln -s /dev/stdout /var/log/nginx/access.log
RUN rm /var/log/nginx/error.log && ln -s /dev/stderr /var/log/nginx/error.log
RUN apt-get update \
&& apt-get install -y nginx \
&& rm -rf /var/lib/apt/lists/* \
&& rm /var/log/nginx/access.log \
&& rm /var/log/nginx/error.log \
&& ln -s /dev/stdout /var/log/nginx/access.log \
&& ln -s /dev/stderr /var/log/nginx/error.log

COPY ./html/ /var/www/html/
ADD http://example.com/index.html /var/www/html/example.html

CMD ["/usr/sbin/nginx", "-g", "daemon off;"]

0 comments on commit 33d2958

Please sign in to comment.