Keeby-smilyai commited on
Commit
2b46808
·
verified ·
1 Parent(s): a9da23a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -28,11 +28,11 @@ RUN pip install --no-cache-dir --user -r requirements.txt
28
  # Switch to non-root user
29
  USER user
30
 
31
- # Expose Streamlit port (use 7860 for default HF Spaces, or specify app_port in README.md)
32
- EXPOSE 7860
33
 
34
  # Health check
35
- HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1
36
 
37
- # Run the app (adjust port to 7860 for HF Spaces default)
38
- CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
28
  # Switch to non-root user
29
  USER user
30
 
31
+ # Expose Streamlit default port
32
+ EXPOSE 8501
33
 
34
  # Health check
35
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
36
 
37
+ # Run the app on Streamlit's default port
38
+ CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]