Skip to content

Commit

Permalink
docker: add API_LISTEN_PORT for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Divkix committed Jun 6, 2023
1 parent e0c1071 commit d8a518c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions goreleaser.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM alpine
RUN apk add --no-cache tini curl
COPY aliveimage /
ENTRYPOINT ["/sbin/tini", "--", "/aliveimage"]
ENV API_LISTEN_PORT=8080

HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD curl --fail http://localhost:$API_LISTEN_PORT/status || exit 1

Expand Down

0 comments on commit d8a518c

Please sign in to comment.