From a8a271e6fbee71206082a371d5dad194e7ad75a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 8 Dec 2018 13:30:17 +0100 Subject: [PATCH] Update Dockerfile Update to Alpine 3.8 Apply best practices eg: - Don't upgrade - Add --no-cache-dir to pip install - Remove removing of any tmp folder as it is deprecated - Format RUN block nicer --- Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a91d2bb6..7913cf1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,14 @@ -FROM alpine:3.6 +FROM alpine:3.8 #Base settings ENV HOME /root #Install ZeroNet -RUN apk --update upgrade \ - && apk --no-cache --no-progress add musl-dev gcc python python-dev py2-pip tor \ - && pip install gevent msgpack \ - && apk del musl-dev gcc python-dev py2-pip \ - && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* \ - && echo "ControlPort 9051" >> /etc/tor/torrc \ - && echo "CookieAuthentication 1" >> /etc/tor/torrc +RUN apk --no-cache --no-progress add musl-dev gcc python python-dev py2-pip tor \ + && pip install --no-cache-dir gevent msgpack \ + && apk del musl-dev gcc python-dev py2-pip \ + && echo "ControlPort 9051" >> /etc/tor/torrc \ + && echo "CookieAuthentication 1" >> /etc/tor/torrc #Add Zeronet source COPY . /root