From 1105fb82744ef71360a51b5d5df193680e79a1ac Mon Sep 17 00:00:00 2001 From: Patrick Thoelken Date: Thu, 29 Aug 2024 10:23:59 +0200 Subject: [PATCH] fix: broken healthchecks on sh containers (#4300) --- healthcheck.sh | 2 +- prod.Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/healthcheck.sh b/healthcheck.sh index c772d6bf5..c95076899 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh curlCheck() { if ! curl -s --head "$1" | head -n 1 | grep -q "HTTP/1.[01] [23].."; then diff --git a/prod.Dockerfile b/prod.Dockerfile index d7190048f..aa2e24a80 100644 --- a/prod.Dockerfile +++ b/prod.Dockerfile @@ -119,8 +119,8 @@ COPY aio-subpath-access.Caddyfile /etc/caddy/aio-subpath-access.Caddyfile RUN npm install -g @import-meta-env/cli ENTRYPOINT [ "tini", "--" ] -COPY --chmod=755 healthcheck.sh . -HEALTHCHECK --interval=2s CMD /bin/sh ./healthcheck.sh +COPY --chmod=755 healthcheck.sh / +HEALTHCHECK --interval=2s CMD /bin/sh /healthcheck.sh WORKDIR /dist/backend