diff --git a/Dockerfile b/Dockerfile index 13aa289..38fca51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,11 @@ FROM docker.io/node:16.15.0-alpine ENV NO_UPDATE_NOTIFIER=true WORKDIR /opt/app-root/src/app COPY . /opt/app-root/src -RUN npm run all:ci \ +RUN npm install --unsafe-perm \ + && npm run all:ci \ && npm run all:build \ && npm run client:purge EXPOSE 8000 -# Change ownership of the directory to 'node' user -RUN chown -R node:node /opt/app-root/src # Switch to non-root user USER node CMD ["npm", "run", "start"]