mukherjee78 commited on
Commit
8890033
·
verified ·
1 Parent(s): 52af789

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -24,12 +24,13 @@ COPY app.py .
24
  # Uncomment and ensure models/ exists when building with a pre-downloaded model:
25
  # COPY models/best_random_forest.pkl models/
26
 
27
- EXPOSE 8501
 
28
 
29
  HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
30
- CMD curl -f http://localhost:8501/_stcore/health || exit 1
31
 
32
  CMD ["streamlit", "run", "app.py", \
33
- "--server.port=8501", \
34
  "--server.address=0.0.0.0", \
35
  "--server.headless=true"]
 
24
  # Uncomment and ensure models/ exists when building with a pre-downloaded model:
25
  # COPY models/best_random_forest.pkl models/
26
 
27
+ # HF Spaces Docker default is app_port 7860; proxy forwards to this port
28
+ EXPOSE 7860
29
 
30
  HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
31
+ CMD curl -f http://localhost:7860/_stcore/health || exit 1
32
 
33
  CMD ["streamlit", "run", "app.py", \
34
+ "--server.port=7860", \
35
  "--server.address=0.0.0.0", \
36
  "--server.headless=true"]