feat: better healthcheck and prevent useless composer install calls

This commit is contained in:
Kévin Dunglas
2023-09-18 22:03:49 +02:00
parent 253eae0e15
commit b5710da39c
3 changed files with 3 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ WORKDIR /srv/app
ADD --chmod=500 https://caddyserver.com/api/download?os=linux&arch=$TARGETARCH&p=github.com/dunglas/mercure/caddy&p=github.com/dunglas/vulcain/caddy /usr/bin/caddy
COPY --link docker/caddy/Caddyfile /etc/caddy/Caddyfile
HEALTHCHECK CMD wget --no-verbose --tries=1 --spider https://localhost/healthz || exit 1
HEALTHCHECK CMD wget --no-verbose --tries=1 --spider http://localhost:2019/metrics || exit 1
# Prod Caddy image
FROM caddy_base AS caddy_prod