mirror of
https://github.com/Xevion/glance.git
synced 2025-12-06 03:15:13 -06:00
Also add healthcheck to the other Dockerfile
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user