wdawdwa commited on
Commit
d5b818f
·
1 Parent(s): 53ad4d8

Re-add healthcheck with a longer start-period

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -38,8 +38,8 @@ USER app
38
  EXPOSE 8080
39
 
40
  # Health check
41
- #HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
42
- # CMD curl -f http://localhost:8080/ || exit 1
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"]