Skip to content

Commit cef729f

Browse files
authored
Merge pull request #526 from Tom-Hudson/2x-healthcheck
reduce the Docker healthcheck interval during startup
2 parents 404e036 + 9cf0cf6 commit cef729f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ WORKDIR /go/src/github.com/bavix/gripmock
3535

3636
EXPOSE 4770 4771
3737

38-
HEALTHCHECK CMD curl --fail http://127.0.0.1:4771/api/health/readiness
38+
HEALTHCHECK --start-interval=1s --start-period=30s \
39+
CMD curl --fail http://127.0.0.1:4771/api/health/readiness
3940

4041
ENTRYPOINT ["gripmock"]

0 commit comments

Comments
 (0)