sks01dev commited on
Commit
bec871e
·
verified ·
1 Parent(s): 95079b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -23,8 +23,8 @@ ENV PATH="/app/.venv/bin:$PATH"
23
  # Copy the FastAPI app and model
24
  COPY predict.py model.bin ./
25
 
26
- # Expose port (optional but good practice)
27
- EXPOSE 9696
28
 
29
  # Start the FastAPI app with uvicorn
30
- ENTRYPOINT ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "9696"]
 
23
  # Copy the FastAPI app and model
24
  COPY predict.py model.bin ./
25
 
26
+ # Expose port (optional but good practice, 7860 for HF Spaces)
27
+ EXPOSE 7860
28
 
29
  # Start the FastAPI app with uvicorn
30
+ ENTRYPOINT ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "7860"]