Fix building the docker image
This commit is contained in:
parent
986dedfa7f
commit
8474abc967
1 changed files with 18 additions and 9 deletions
15
Dockerfile
15
Dockerfile
|
@ -3,11 +3,19 @@ FROM alpine:3.11
|
||||||
# Base settings
|
# Base settings
|
||||||
ENV HOME /root
|
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
|
COPY requirements.txt /root/requirements.txt
|
||||||
|
|
||||||
#Install ZeroNet
|
RUN pip3 install -r /root/requirements.txt \
|
||||||
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 \
|
|
||||||
&& apk del python3-dev gcc libffi-dev musl-dev make \
|
&& apk del python3-dev gcc libffi-dev musl-dev make \
|
||||||
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
||||||
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
||||||
|
@ -18,6 +26,7 @@ RUN python3 -V \
|
||||||
&& openssl version
|
&& openssl version
|
||||||
|
|
||||||
# Add Zeronet source
|
# Add Zeronet source
|
||||||
|
|
||||||
COPY . /root
|
COPY . /root
|
||||||
VOLUME /root/data
|
VOLUME /root/data
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue