Add build with integrated tor
This commit is contained in:
parent
b9156bb913
commit
9a94b34d6b
2 changed files with 31 additions and 0 deletions
18
Dockerfile.integrated_tor
Normal file
18
Dockerfile.integrated_tor
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM python:3.10.4-alpine
|
||||
|
||||
RUN apk --update --no-cache --no-progress add tor gcc libffi-dev musl-dev make openssl g++ \
|
||||
&& echo "ControlPort 9051" >> /etc/tor/torrc \
|
||||
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN python3 -m venv venv \
|
||||
&& source venv/bin/activate \
|
||||
&& python3 -m pip install -r requirements.txt
|
||||
|
||||
CMD (tor&) \
|
||||
&& source venv/bin/activate \
|
||||
&& python3 zeronet.py --ui_ip "*" --fileserver_port 26552
|
||||
|
||||
EXPOSE 43110 26552
|
|
@ -32,6 +32,19 @@ services:
|
|||
environment:
|
||||
TOR_ENABLED: enable
|
||||
<<: *tor-environments
|
||||
0net-tor:
|
||||
tty: true
|
||||
stdin_open: true
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.integrated_tor
|
||||
networks:
|
||||
- 0net-network
|
||||
volumes:
|
||||
- 0net-data:/app/data
|
||||
ports:
|
||||
- "26552:26552"
|
||||
- "43110:43110"
|
||||
volumes:
|
||||
0net-data:
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue