omaralaa2004 commited on
Commit
e3a974c
·
verified ·
1 Parent(s): 6227d2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -6,6 +6,6 @@ COPY . /app
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- EXPOSE 5000
10
 
11
- CMD ["python", "app.py"]
 
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ EXPOSE 7860 # Changed from 5000 to match Hugging Face Spaces default
10
 
11
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] # Use gunicorn instead of python app.py