Also add healthcheck to the other Dockerfile

This commit is contained in:
Svilen Markov 2024-12-05 13:31:25 +00:00
parent aff02c2def
commit 80331aa217
2 changed files with 6 additions and 4 deletions

View file

@ -6,11 +6,11 @@ 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 .
HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \
CMD wget --spider -q http://localhost:8080/api/healthz
EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]

View file

@ -3,6 +3,8 @@ FROM alpine:3.20
WORKDIR /app
COPY glance .
EXPOSE 8080/tcp
HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \
CMD wget --spider -q http://localhost:8080/api/healthz
EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]