shashwatIDR commited on
Commit
ef30deb
·
verified ·
1 Parent(s): e1e5e71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,20 +1,12 @@
1
- # Use official lightweight Python image
2
- FROM python:3.11-slim
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy requirements directly (you can also use a requirements.txt file instead)
8
- COPY . .
9
 
10
- # Install dependencies
11
- RUN pip install --no-cache-dir Flask requests sse-starlette httpx
12
 
13
- # Expose the port (e.g., 7860 for HF Spaces or your desired one)
14
  EXPOSE 7860
15
 
16
- # Environment variable (optional)
17
- ENV PORT=7860
18
-
19
- # Start the Python app
20
- CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
 
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY bot.py .
 
9
 
 
10
  EXPOSE 7860
11
 
12
+ CMD ["python", "bot.py"]