ZeroNet/Dockerfile

22 lines
531 B
Docker
Raw Normal View History

2022-05-28 16:13:00 +02:00
FROM python:3.10.4-alpine
2015-05-27 15:13:36 +02:00
2022-05-28 16:13:00 +02:00
RUN apk --update --no-cache --no-progress add gcc libffi-dev musl-dev make tor openssl g++ \
&& echo "ControlPort 9051" >> /etc/tor/torrc \
2020-03-24 02:09:57 +01:00
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
2015-05-27 15:13:36 +02:00
2022-05-28 16:13:00 +02:00
WORKDIR /app
VOLUME /app/data
COPY . .
2015-05-27 15:13:36 +02:00
2022-05-28 16:13:00 +02:00
RUN python3 -m venv venv \
&& source venv/bin/activate \
&& python3 -m pip install -r requirements.txt
2022-05-28 16:13:00 +02:00
ENV ENABLE_TOR false
2017-07-17 16:08:18 +02:00
2022-05-28 16:13:00 +02:00
CMD (! ${ENABLE_TOR} || tor&) \
&& source venv/bin/activate \
&& python3 zeronet.py --ui_ip "*" --fileserver_port 26552
2015-05-27 15:13:36 +02:00
2018-04-18 04:10:11 +02:00
EXPOSE 43110 26552