Commit
·
5d5da0c
1
Parent(s):
75e6472
chore(docker): bind uvicorn to platform PORT (fallback 7860) for HF routing
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -116,5 +116,5 @@ ENV PYTHONUNBUFFERED=1
|
|
| 116 |
# Expose port 7860 (required for Hugging Face Spaces)
|
| 117 |
EXPOSE 7860
|
| 118 |
|
| 119 |
-
# Run the API server
|
| 120 |
-
CMD ["python", "-m", "uvicorn", "api_server:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 116 |
# Expose port 7860 (required for Hugging Face Spaces)
|
| 117 |
EXPOSE 7860
|
| 118 |
|
| 119 |
+
# Run the API server using the platform PORT (fallback to 7860)
|
| 120 |
+
CMD ["python", "-m", "uvicorn", "api_server:app", "--host", "0.0.0.0", "--port", "${PORT:-7860}"]
|