LogicGoInfotechSpaces commited on
Commit
eaea5df
·
1 Parent(s): 5d5da0c

fix(docker): use /bin/sh -lc so expands for uvicorn

Browse files
Files changed (1) hide show
  1. 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 using the platform PORT (fallback to 7860)
120
- CMD ["python", "-m", "uvicorn", "api_server:app", "--host", "0.0.0.0", "--port", "${PORT:-7860}"]
 
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}"]