abdullah-azeemi commited on
Commit
8b875bf
·
1 Parent(s): c491936

Fix: Set Gunicorn port to 7860 for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -23,4 +23,5 @@ COPY . /app
23
  # -w 4: 4 worker processes
24
  # -b 0.0.0.0:${PORT}: Bind to the port set in the environment
25
  # app:app: module:app instance
26
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "app:app"]
 
 
23
  # -w 4: 4 worker processes
24
  # -b 0.0.0.0:${PORT}: Bind to the port set in the environment
25
  # app:app: module:app instance
26
+ # Your CMD command should explicitly set the port to 7860
27
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"]