Update Docker Image

This commit is contained in:
canewsin 2021-12-03 00:48:16 +05:30
parent edd2760fed
commit 7078badefa
2 changed files with 15 additions and 14 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.11
FROM alpine:3.15
#Base settings
ENV HOME /root
@ -6,9 +6,9 @@ ENV HOME /root
COPY requirements.txt /root/requirements.txt
#Install ZeroNet
RUN apk --update --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
RUN apk --update --no-cache --no-progress add python3 python3-dev py3-pip gcc g++ autoconf automake libtool libffi-dev musl-dev make tor openssl \
&& pip3 install -r /root/requirements.txt \
&& apk del python3-dev gcc libffi-dev musl-dev make \
&& apk del python3-dev gcc g++ autoconf automake libtool libffi-dev musl-dev make \
&& echo "ControlPort 9051" >> /etc/tor/torrc \
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
@ -22,12 +22,12 @@ COPY . /root
VOLUME /root/data
#Control if Tor proxy is started
ENV ENABLE_TOR false
ENV ENABLE_TOR true
WORKDIR /root
#Set upstart command
CMD (! ${ENABLE_TOR} || tor&) && python3 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 26117
#Expose ports
EXPOSE 43110 26552
EXPOSE 43110 26117