Spaces:
Sleeping
Sleeping
Commit ·
8b875bf
1
Parent(s): c491936
Fix: Set Gunicorn port to 7860 for Hugging Face Spaces
Browse files- 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
|
|
|
|
|
|
| 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"]
|