Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 32 |
-
EXPOSE
|
| 33 |
|
| 34 |
# Health check
|
| 35 |
-
HEALTHCHECK CMD curl --fail http://localhost:
|
| 36 |
|
| 37 |
-
# Run the app
|
| 38 |
-
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=
|
|
|
|
| 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"]
|