Skip to content

Commit

Permalink
add start-interval
Browse files Browse the repository at this point in the history
  • Loading branch information
bboehmke committed Apr 7, 2024
1 parent ab0e286 commit a39ab2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM golang:1.22

COPY . /src/
Expand All @@ -14,7 +15,7 @@ RUN apk add --no-cache postgresql-client
# copy app from build image
COPY --from=0 /app /app

HEALTHCHECK --timeout=10s --start-period=60s CMD /app healthcheck
HEALTHCHECK --timeout=10s --start-period=60s --start-interval=2s CMD /app healthcheck

VOLUME /backup/
CMD "/app"

0 comments on commit a39ab2f

Please sign in to comment.