Also add healthcheck to the other Dockerfile
This commit is contained in:
parent
aff02c2def
commit
80331aa217
2 changed files with 6 additions and 4 deletions
|
|
@ -6,11 +6,11 @@ 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 .
|
||||||
|
|
||||||
|
HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \
|
||||||
|
CMD wget --spider -q http://localhost:8080/api/healthz
|
||||||
|
|
||||||
EXPOSE 8080/tcp
|
EXPOSE 8080/tcp
|
||||||
ENTRYPOINT ["/app/glance"]
|
ENTRYPOINT ["/app/glance"]
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ FROM alpine:3.20
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY glance .
|
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"]
|
ENTRYPOINT ["/app/glance"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue