From aff02c2defd0e391a8fff07a5fb68e0a59c884d6 Mon Sep 17 00:00:00 2001 From: Luca Crema Date: Fri, 18 Oct 2024 14:07:24 +0200 Subject: [PATCH] Added HEALTHCHECK to Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e4019ba..9e96b95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ RUN CGO_ENABLED=0 go build . FROM alpine:3.20 +HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \ + CMD wget --spider -q http://localhost:8080/api/healthz + WORKDIR /app COPY --from=builder /app/glance .