mokshak commited on
Commit
ba6b8b9
·
1 Parent(s): 12556e8

Fix Dockerfile to use uvicorn for FastAPI endpoints

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # SHL Assessment Recommendation Engine
2
- # HuggingFace Spaces with Gradio UI
3
 
4
  FROM python:3.10-slim
5
 
@@ -16,4 +16,4 @@ COPY --chown=user . /app
16
 
17
  EXPOSE 7860
18
 
19
- CMD ["python", "app.py"]
 
1
  # SHL Assessment Recommendation Engine
2
+ # HuggingFace Spaces with FastAPI + Gradio UI
3
 
4
  FROM python:3.10-slim
5
 
 
16
 
17
  EXPOSE 7860
18
 
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]