baha-99 commited on
Commit
e779189
·
verified ·
1 Parent(s): 092fc79

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -20
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- # Use a minimal Python image
2
- FROM python:3.10-slim
3
-
4
- # Set the working directory inside the container
5
- WORKDIR /app
6
-
7
- # Copy only necessary files first (for faster caching)
8
- COPY requirements.txt .
9
-
10
- # Install dependencies before copying everything
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Now copy the rest of the bot files
14
- COPY . .
15
-
16
- # Expose a dummy port (Hugging Face requires this)
17
- EXPOSE 7860
18
-
19
- # Start the bot
20
- CMD ["python", "bot_telegram.py"]
 
1
+ # Use a minimal Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy only necessary files first (for faster caching)
8
+ COPY requirements.txt .
9
+
10
+ # Install dependencies before copying everything
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Now copy the rest of the bot files
14
+ COPY . .
15
+
16
+ # Expose a dummy port (Hugging Face requires this)
17
+ EXPOSE 7860
18
+
19
+ # Start the bot and keep the container alive
20
+ CMD ["sh", "-c", "python bot_telegram.py & tail -f /dev/null"]