Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files- 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 |
-
|
|
|
|
| 28 |
|
| 29 |
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
| 30 |
-
CMD curl -f http://localhost:
|
| 31 |
|
| 32 |
CMD ["streamlit", "run", "app.py", \
|
| 33 |
-
"--server.port=
|
| 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"]
|