Spaces:
Runtime error
Runtime error
Fix health check - increase start-period to 120s, use curl
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -76,9 +76,9 @@ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
| 76 |
|
| 77 |
USER pwuser
|
| 78 |
|
| 79 |
-
# Health check -
|
| 80 |
-
HEALTHCHECK --interval=
|
| 81 |
-
CMD
|
| 82 |
|
| 83 |
# Run the application using entrypoint
|
| 84 |
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
| 76 |
|
| 77 |
USER pwuser
|
| 78 |
|
| 79 |
+
# Health check - give app more time to start (120 seconds)
|
| 80 |
+
HEALTHCHECK --interval=10s --timeout=10s --start-period=120s --retries=5 \
|
| 81 |
+
CMD curl -f http://localhost:8000/ || exit 1
|
| 82 |
|
| 83 |
# Run the application using entrypoint
|
| 84 |
ENTRYPOINT ["/entrypoint.sh"]
|