From 36bd7b218bd7e6a7d18caea35eb0e6f9b35f96bb Mon Sep 17 00:00:00 2001 From: spchortis Date: Thu, 28 Sep 2023 15:30:11 +0300 Subject: [PATCH] chore: adding non root user in node dockerfile template --- assets/docker/Dockerfile.node.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/docker/Dockerfile.node.tmpl b/assets/docker/Dockerfile.node.tmpl index d1ae017..c871a9c 100644 --- a/assets/docker/Dockerfile.node.tmpl +++ b/assets/docker/Dockerfile.node.tmpl @@ -14,4 +14,5 @@ RUN npm test FROM gcr.io/distroless/nodejs20-debian11 COPY --from=build-env /app /app WORKDIR /app +USER nonroot CMD ["index.js"] \ No newline at end of file