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
This commit is contained in:
parent
b0140a655f
commit
a8a271e6fb
1 changed files with 6 additions and 8 deletions
14
Dockerfile
14
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
|
||||
|
|
Loading…
Reference in a new issue