Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
|
|
|
| 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
|