From b7781e2bab9c171b7874b03044cc03fabaf9d12d Mon Sep 17 00:00:00 2001 From: Kaindl Network <82705244+kgncloud@users.noreply.github.com> Date: Mon, 13 Mar 2023 20:38:36 +0100 Subject: [PATCH] Add Healthcheck to Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3057f35..a307a45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,3 +9,6 @@ RUN npm ci COPY . . EXPOSE 3000 + +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ + CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1