-
-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #321 from SasikaSankalana/dev
Added Dockerfile
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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 Poetry | ||
RUN pip install --no-cache-dir poetry | ||
|
||
# Install TorBot dependencies using Poetry | ||
RUN cd /app && poetry install | ||
|
||
# Expose the port specified in the .env file | ||
EXPOSE $SOCKS5_PORT | ||
|
||
# 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 |