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