shashwatIDR commited on
Commit
6aab9ed
·
verified ·
1 Parent(s): 74aa8ff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -10
Dockerfile CHANGED
@@ -1,20 +1,12 @@
1
- # Use Hugging Face Spaces base image (compatible with linux/amd64)
2
- FROM registry.hf.space/shashwatidr-vision:latest
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy requirements first for caching
8
  COPY requirements.txt .
9
-
10
- # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy bot code
14
  COPY app.py .
15
 
16
- # Expose the port for Flask
17
  EXPOSE 7860
18
 
19
- # Start the bot
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 app.py .
9
 
 
10
  EXPOSE 7860
11
 
12
+ CMD ["python", "bot.py"]