Spaces:
Runtime error

dpadhan commited on
Commit
fd4d03c
·
verified ·
1 Parent(s): 735da04

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a slim Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies for tgcrypto and speed
8
+ RUN apt-get update && apt-get install -y \
9
+ gcc \
10
+ python3-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy and install requirements
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy the bot code
18
+ COPY . .
19
+
20
+ # Run the bot
21
+ CMD ["python", "bot.py"]