Commit
·
eaea5df
1
Parent(s):
5d5da0c
fix(docker): use /bin/sh -lc so expands for uvicorn
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
|
| 120 |
-
CMD ["
|
|
|
|
| 116 |
# Expose port 7860 (required for Hugging Face Spaces)
|
| 117 |
EXPOSE 7860
|
| 118 |
|
| 119 |
+
# Run via shell so ${PORT} expands (fallback to 7860)
|
| 120 |
+
CMD ["/bin/sh", "-lc", "python -m uvicorn api_server:app --host 0.0.0.0 --port ${PORT:-7860}"]
|