Add healthcheck (#665)

This commit is contained in:
Franck Nijhof 2023-06-26 22:29:42 +02:00 committed by GitHub
parent 950cbcea8a
commit 9aea4acbe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,12 @@ RUN \
# Copy root filesystem
COPY rootfs /
# Health check
HEALTHCHECK \
CMD curl --fail http://127.0.0.1:1337/healthz \
| jq --exit-status '.status == "alive"' \
|| exit 1
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE