From d49a3674deac46596fc613c69543d35399077bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Pr=C3=B6ll?= Date: Fri, 11 Oct 2024 16:24:29 +0200 Subject: [PATCH] Update Dockerfile --- frontend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 3963a74..868ab59 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -12,10 +12,10 @@ RUN find . -type f ! -path '*/node_modules/*' -print0 | xargs -0 dos2unix EXPOSE 56000 +RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node +RUN chown -R 1000:1000 /app RUN mkdir -p /app/resources && chown -R node:node /app/resources VOLUME /app/resources -RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node -RUN chown -R 1000:1000 /app USER node CMD npm run start-dist