mirror of
https://github.com/Xevion/glance.git
synced 2025-12-08 10:07:16 -06:00
Added HEALTHCHECK to Dockerfile
This commit is contained in:
@@ -6,6 +6,9 @@ RUN CGO_ENABLED=0 go build .
|
|||||||
|
|
||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
|
|
||||||
|
HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \
|
||||||
|
CMD wget --spider -q http://localhost:8080/api/healthz
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/glance .
|
COPY --from=builder /app/glance .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user