Added HEALTHCHECK to Dockerfile

This commit is contained in:
Luca Crema
2024-10-18 14:07:24 +02:00
committed by GitHub
parent d90d39933a
commit aff02c2def

View File

@@ -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 .