ayush2917 commited on
Commit
276ae2a
·
verified ·
1 Parent(s): f6df21b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -1,17 +1,10 @@
1
- # Use a Python base image
2
  FROM python:3.9-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
-
7
- # Copy all project files to the container
8
  COPY . .
9
 
10
- # Install Python dependencies
11
- RUN pip install -r requirements.txt
12
-
13
- # Expose the port Flask will run on (required by Hugging Face Spaces)
14
- EXPOSE 5000
15
 
16
- # Run the Flask app
17
- CMD ["python", "app.py"]
 
1
+ # Dockerfile
2
  FROM python:3.9-slim
3
 
 
4
  WORKDIR /app
 
 
5
  COPY . .
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
8
 
9
+ EXPOSE 7860
10
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]