Sachin21112004 commited on
Commit
e4a66c6
·
verified ·
1 Parent(s): 3679521
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -25,8 +25,8 @@ RUN useradd -m -r -u 1000 appuser \
25
  && chown -R appuser:appuser /code
26
  USER appuser
27
 
28
- # Expose the port the app runs on
29
- EXPOSE 80
30
 
31
  # Run the FastAPI app with Uvicorn
32
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "80"]
 
25
  && chown -R appuser:appuser /code
26
  USER appuser
27
 
28
+ # Expose the port Hugging Face Spaces expects
29
+ EXPOSE 7860
30
 
31
  # Run the FastAPI app with Uvicorn
32
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]