Fix building the docker image
This commit is contained in:
parent
986dedfa7f
commit
8474abc967
1 changed files with 18 additions and 9 deletions
25
Dockerfile
25
Dockerfile
|
@ -1,13 +1,21 @@
|
|||
FROM alpine:3.11
|
||||
|
||||
#Base settings
|
||||
# Base settings
|
||||
ENV HOME /root
|
||||
|
||||
# Install packages
|
||||
|
||||
RUN apk --update --no-cache --no-progress add \
|
||||
python3 python3-dev \
|
||||
libffi-dev musl-dev \
|
||||
gcc g++ make \
|
||||
automake autoconf libtool \
|
||||
openssl \
|
||||
tor
|
||||
|
||||
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 \
|
||||
&& pip3 install -r /root/requirements.txt \
|
||||
RUN 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
|
||||
|
@ -17,17 +25,18 @@ RUN python3 -V \
|
|||
&& tor --version \
|
||||
&& openssl version
|
||||
|
||||
#Add Zeronet source
|
||||
# Add Zeronet source
|
||||
|
||||
COPY . /root
|
||||
VOLUME /root/data
|
||||
|
||||
#Control if Tor proxy is started
|
||||
# Control if Tor proxy is started
|
||||
ENV ENABLE_TOR false
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
#Set upstart command
|
||||
# Set upstart command
|
||||
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
|
||||
|
||||
#Expose ports
|
||||
# Expose ports
|
||||
EXPOSE 43110 26552
|
||||
|
|
Loading…
Reference in a new issue