Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Add curl deps, add healthcheck
  • Loading branch information
aleksraiden authored Jan 3, 2025
1 parent 3f697b7 commit 9f3a741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN go build .

FROM alpine:3.21

RUN apk update && apk upgrade
RUN apk update && apk upgrade && apk add --no-cache curl

WORKDIR /opt

Expand All @@ -21,4 +21,6 @@ COPY --from=build /opt/LICENSE .

EXPOSE 9121/tcp

HEALTHCHECK --interval=30s --timeout=1s --start-period=5s --retries=3 CMD curl --fail -s http://localhost:9121/health | grep 'ok' || exit 1

ENTRYPOINT [ "/kvrocks_exporter" ]

0 comments on commit 9f3a741

Please sign in to comment.