Spaces:
Sleeping
Sleeping
AL FAYOUMI BILAL commited on
Commit ·
7bcf8df
1
Parent(s): a9c3aea
fix: add start-period to healthcheck
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -15,6 +15,6 @@ RUN pip3 install -r requirements.txt
|
|
| 15 |
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
-
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 19 |
|
| 20 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
| 15 |
|
| 16 |
EXPOSE 7860
|
| 17 |
|
| 18 |
+
HEALTHCHECK --start-period=30s --interval=10s --timeout=5s CMD curl --fail http://localhost:7860/_stcore/health || exit 1
|
| 19 |
|
| 20 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|