baha-99 commited on
Commit
28454ae
·
verified ·
1 Parent(s): e3b36c0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,20 +1,11 @@
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"]
 
 
1
  FROM python:3.10-slim
 
 
2
  WORKDIR /app
 
 
3
  COPY requirements.txt .
 
 
4
  RUN pip install --no-cache-dir -r requirements.txt
 
 
5
  COPY . .
6
 
7
+ # dummy port
8
  EXPOSE 7860
9
 
10
+ # Start the bot and keep the container alive(idk it is working or not)
11
  CMD ["sh", "-c", "python bot_telegram.py & tail -f /dev/null"]