Merge pull request #1975 from krzotr/patch-2
Updated to python 3.6 in Dockerfile
This commit is contained in:
commit
efbf70726f
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
@ -3,15 +3,16 @@ FROM alpine:3.8
|
|||
#Base settings
|
||||
ENV HOME /root
|
||||
|
||||
#Add Zeronet source
|
||||
COPY . /root
|
||||
|
||||
#Install ZeroNet
|
||||
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 \
|
||||
RUN apk --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
|
||||
&& pip3 install -r /root/requirements.txt \
|
||||
&& apk del python3-dev gcc libffi-dev musl-dev make \
|
||||
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
||||
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
||||
|
||||
#Add Zeronet source
|
||||
COPY . /root
|
||||
VOLUME /root/data
|
||||
|
||||
#Control if Tor proxy is started
|
||||
|
@ -20,7 +21,7 @@ ENV ENABLE_TOR false
|
|||
WORKDIR /root
|
||||
|
||||
#Set upstart command
|
||||
CMD (! ${ENABLE_TOR} || tor&) && python zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
|
||||
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
|
||||
|
||||
#Expose ports
|
||||
EXPOSE 43110 26552
|
||||
|
|
Loading…
Reference in a new issue