From d8a518cdf756c900fd1f6518c01dfcc0e3890a6a Mon Sep 17 00:00:00 2001 From: Divanshu Chauhan Date: Tue, 6 Jun 2023 14:12:04 +0530 Subject: [PATCH] docker: add API_LISTEN_PORT for goreleaser --- goreleaser.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/goreleaser.Dockerfile b/goreleaser.Dockerfile index 0bb3942..e05eba2 100644 --- a/goreleaser.Dockerfile +++ b/goreleaser.Dockerfile @@ -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