Skip to content

Commit 361e4ff

Browse files
committed
Switch to alpine and enjoy lighter images
1 parent b4e4501 commit 361e4ff

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM debian:jessie
1+
FROM alpine:edge
22

33
MAINTAINER Nicolas Delaby <[email protected]>
44

5-
RUN apt-get -y update &&\
6-
apt-get install -y -q nginx nginx-extras ca-certificates &&\
7-
apt-get clean &&\
8-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
5+
RUN apk add --update nginx ca-certificates
6+
7+
RUN echo -n "daemon off;" >> /etc/nginx/nginx.conf
98

109
VOLUME /var/log/nginx
1110
VOLUME /etc/nginx/

0 commit comments

Comments
 (0)