Re-add healthcheck with a longer start-period
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -38,8 +38,8 @@ USER app
|
|
| 38 |
EXPOSE 8080
|
| 39 |
|
| 40 |
# Health check
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
# Run the application
|
| 45 |
CMD ["python", "main.py"]
|
|
|
|
| 38 |
EXPOSE 8080
|
| 39 |
|
| 40 |
# Health check
|
| 41 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
| 42 |
+
CMD curl -f http://localhost:8080/ || exit 1
|
| 43 |
|
| 44 |
# Run the application
|
| 45 |
CMD ["python", "main.py"]
|