From 480f1a03d145dd2f1d857f445026363c96242a58 Mon Sep 17 00:00:00 2001 From: Brendan Goubin Date: Wed, 5 Feb 2025 08:25:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A8=E2=80=8D=F0=9F=92=BB=20Add=20healt?= =?UTF-8?q?hcheck=20for=20the=20docker=20(#1541)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index ef368b648..c68101d48 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -35,6 +35,7 @@ RUN apt-get update \ openssl \ zlib1g \ libgcc-s1 \ + curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -64,4 +65,6 @@ ARG SELF_HOSTED ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED ENV HOSTNAME=0.0.0.0 +HEALTHCHECK CMD curl --fail http://localhost:${PORT}/api/status || exit 1 + CMD ["./docker-start.sh"]