diff --git a/Dockerfile b/Dockerfile index 811b65e..67cb178 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,12 @@ FROM docker.io/node:16.15.0-alpine ENV NO_UPDATE_NOTIFIER=true WORKDIR /opt/app-root/src/app COPY . /opt/app-root/src -USER node + +# Install dependencies with --unsafe-perm flag and build the application RUN npm install --unsafe-perm \ && npm run all:ci \ && npm run all:build \ && npm run client:purge + EXPOSE 8000 -# Switch to non-root user CMD ["npm", "run", "start"]