Skip to content

Commit

Permalink
feat: add health-check to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Oct 31, 2024
1 parent 6606f51 commit 7e3ac74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ FROM alpine:3.20.3

EXPOSE 8080

HEALTHCHECK \
--interval=5s \
--timeout=5s \
--start-period=5s \
--retries=3 \
CMD wget -qO- http://localhost:8080/v1/health || exit 1

COPY --from=builder /app/dist/geoblock /app/geoblock

WORKDIR /app
Expand Down

0 comments on commit 7e3ac74

Please sign in to comment.