ABDALLALSWAITI commited on
Commit
69c816c
·
verified ·
1 Parent(s): 1362dfd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -64,9 +64,11 @@ ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
64
  ENV STREAMLIT_SERVER_ENABLE_CORS=false
65
  ENV HOME=/tmp
66
 
67
- # Expose ports - 7860 for API (Hugging Face default), 8501 for Streamlit
 
68
  EXPOSE 7860 8501
69
 
 
70
  HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 1
71
 
72
  # Run startup script
 
64
  ENV STREAMLIT_SERVER_ENABLE_CORS=false
65
  ENV HOME=/tmp
66
 
67
+ # Expose port 7860 for Hugging Face (FastAPI)
68
+ # Port 8501 for Streamlit (internal)
69
  EXPOSE 7860 8501
70
 
71
+ # Health check on FastAPI port
72
  HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 1
73
 
74
  # Run startup script