Merge pull request #242 from CremaLuca/main

feat: HEALTHCHECK in Dockerfile
This commit is contained in:
Svilen Markov 2024-12-05 13:33:01 +00:00 committed by GitHub
commit 7ee8e7c8d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -9,5 +9,8 @@ FROM alpine:3.20
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", "--config", "/app/config/glance.yml"]

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", "--config", "/app/config/glance.yml"]