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
|
||||
|
||||
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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue