-
-
Notifications
You must be signed in to change notification settings - Fork 507
/
Dockerfile
22 lines (16 loc) · 671 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python 3.11.4 image as the base
FROM python:3.11.4
# Set a working directory within the container
WORKDIR /app
# Clone the TorBot repository from GitHub
RUN git clone https://github.com/DedSecInside/TorBot.git /app
# Install dependencies
RUN pip install -r /app/requirements.txt
# Set the SOCKS5_PORT environment variable
ENV SOCKS5_PORT=9050
# Expose the port specified in the .env file
EXPOSE $SOCKS5_PORT
# Run the TorBot script
CMD ["poetry", "run", "python", "torbot"]
# Example way to run the container:
# docker run --network="host" your-image-name poetry run python torbot -u https://www.example.com --depth 2 --visualize tree --save json