From e6803e9a9bf76e1b7020ca9c59a3c0f74db45c46 Mon Sep 17 00:00:00 2001 From: holo Date: Wed, 15 Mar 2023 00:01:25 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9CDocker=20non-root=20healthcheck?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fe88bfb02..84db0939b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,4 @@ RUN adduser -s /bin/false node; exit 0 EXPOSE 8080 CMD [ "./start-docker.sh" ] -HEALTHCHECK --start-period=10s CMD node docker_healthcheck.js +HEALTHCHECK --start-period=10s CMD exec su-exec node node docker_healthcheck.js