mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
Add healthcheck (#665)
This commit is contained in:
parent
950cbcea8a
commit
9aea4acbe1
1 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,12 @@ RUN \
|
||||||
# Copy root filesystem
|
# Copy root filesystem
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
|
# Health check
|
||||||
|
HEALTHCHECK \
|
||||||
|
CMD curl --fail http://127.0.0.1:1337/healthz \
|
||||||
|
| jq --exit-status '.status == "alive"' \
|
||||||
|
|| exit 1
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue