~ancarda/tls-redirector

5f0b9ad56965a4fa1f18e3734f574c80e6e7340f — Mark Dain 3 months ago 37d9da2
Add a basic Docker healthcheck
1 files changed, 2 insertions(+), 0 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +2 -0
@@ 7,6 7,8 @@ COPY . ./
RUN go generate ./... && go build . && strip tls-redirector

FROM alpine:3.12.3
RUN apk add curl
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
EXPOSE 80
CMD ["./tls-redirector"]
HEALTHCHECK --interval=10s CMD curl --fail http://localhost || exit 1