Add support for building ubuntu:20.04-based docker images + some automation

This commit is contained in:
Vadim Ushakov 2021-11-06 20:33:19 +07:00
parent f7372fc393
commit 348a4b0865
9 changed files with 200 additions and 55 deletions

View file

@ -1,42 +0,0 @@
FROM alpine:3.13
# Base settings
ENV HOME /root
# Install packages
RUN apk --update --no-cache --no-progress add \
python3 python3-dev py3-pip \
libffi-dev musl-dev \
gcc g++ make \
automake autoconf libtool \
openssl \
tor
COPY requirements.txt /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
RUN python3 -V \
&& python3 -m pip list \
&& tor --version \
&& openssl version
# Add Zeronet source
COPY . /root
VOLUME /root/data
# Control if Tor proxy is started
ENV ENABLE_TOR false
WORKDIR /root
# Set upstart command
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
# Expose ports
EXPOSE 43110 26552

1
Dockerfile Symbolic link
View file

@ -0,0 +1 @@
dockerfiles/Dockerfile.alpine