Added HEALTHCHECK to Dockerfile

This commit is contained in:
Luca Crema authored and GitHub committed 2024-10-18 14:07:24 +02:00
1 parent d90d39933a
commit aff02c2def
1 file changed
+3
+3
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 .