Merge pull request #2066 from geekless/Dockerfile-fix-caching
Fix the order of commands in Dockerfile to make use of the caching
This commit is contained in:
commit
80bfccd9d3
1 changed files with 3 additions and 2 deletions
|
@ -3,8 +3,7 @@ FROM alpine:3.8
|
||||||
#Base settings
|
#Base settings
|
||||||
ENV HOME /root
|
ENV HOME /root
|
||||||
|
|
||||||
#Add Zeronet source
|
COPY requirements.txt /root/requirements.txt
|
||||||
COPY . /root
|
|
||||||
|
|
||||||
#Install ZeroNet
|
#Install ZeroNet
|
||||||
RUN apk --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
|
RUN apk --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
|
||||||
|
@ -13,6 +12,8 @@ RUN apk --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev
|
||||||
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
||||||
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
||||||
|
|
||||||
|
#Add Zeronet source
|
||||||
|
COPY . /root
|
||||||
VOLUME /root/data
|
VOLUME /root/data
|
||||||
|
|
||||||
#Control if Tor proxy is started
|
#Control if Tor proxy is started
|
||||||
|
|
Loading…
Reference in a new issue