ZeroNet/Dockerfile

18 lines
496 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-30 16:14:02 +02:00
RUN apk --update --no-cache --no-progress add gcc libffi-dev musl-dev make openssl g++
2015-05-27 15:13:36 +02:00
2022-05-28 16:13:00 +02:00
WORKDIR /app
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-30 16:14:02 +02:00
CMD source venv/bin/activate \
&& python3 zeronet.py --ui_ip "*" --fileserver_port 26552 \
--tor $TOR_ENABLED --tor_controller tor:$TOR_CONTROL_PORT \
2022-05-31 13:29:58 +02:00
--tor_proxy tor:$TOR_SOCKS_PORT --tor_password $TOR_CONTROL_PASSWD main
2015-05-27 15:13:36 +02:00
2018-04-18 04:10:11 +02:00
EXPOSE 43110 26552