triflix commited on
Commit
ca624a2
·
verified ·
1 Parent(s): 2695b69

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install Tor and curl
4
+ RUN apt-get update && apt-get install -y tor curl && rm -rf /var/lib/apt/lists/*
5
+
6
+ # Copy tor configuration
7
+ COPY torrc /etc/tor/torrc
8
+
9
+ # Set workdir
10
+ WORKDIR /app
11
+
12
+ # Copy Python requirements and install
13
+ COPY requirements.txt /app/requirements.txt
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy main script
17
+ COPY app.py /app/app.py
18
+
19
+ # Start Tor in background and then run app.py
20
+ CMD tor & python app.py