From fbb86908a3415653cedae09b682aad3ed83b5e66 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:06:54 +0000 Subject: [PATCH] security changes --- server/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 972c975b5..98148360d 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,6 +1,7 @@ FROM node:16 WORKDIR /app -COPY . /app +COPY --chown=node:node . /app +USER node RUN apt-get update && rm -rf /var/lib/apt/lists/* RUN npm install -g pnpm && pnpm i HEALTHCHECK --interval=15s --timeout=5s --start-period=20s CMD curl -f http://localhost:8080/api/v1/status || exit 1