shashwatIDR commited on
Commit
8272a87
·
verified ·
1 Parent(s): 45a86ff

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 bot.py .
15
+
16
+ # Expose the port for Flask
17
+ EXPOSE 7860
18
+
19
+ # Start the bot
20
+ CMD ["python", "bot.py"]