simran40 commited on
Commit
b2249a9
·
verified ·
1 Parent(s): eafaf99

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -5
Dockerfile CHANGED
@@ -1,5 +1,17 @@
1
- FROM python:3.9
2
- WORKDIR /app
3
- COPY . /app
4
- RUN pip install -r requirements.txt
5
- CMD ["python", "main.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy all files
8
+ COPY . /app
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Expose Gradio port
14
+ EXPOSE 5000
15
+
16
+ # Run the app
17
+ CMD ["python", "main.py"]