Added HEALTHCHECK to Dockerfile
This commit is contained in:
parent
d90d39933a
commit
aff02c2def
1 changed files with 3 additions and 0 deletions
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue