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