VLADIMIROFF777 commited on
Commit
85b85bf
·
verified ·
1 Parent(s): 1efa4c4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Upgrade pip
6
+ RUN pip install --no-cache-dir --upgrade pip
7
+
8
+ # Copy requirements and install
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy bot script
13
+ COPY bot.py .
14
+
15
+ # Create a writable directory for sessions (optional, but good practice)
16
+ RUN mkdir sessions
17
+ RUN chmod 777 sessions
18
+
19
+ # Command to run
20
+ CMD ["python", "bot.py"]