File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ COPY --chown=node:node --from=build /app/dist /app/dist
2727COPY --chown=node:node config /app/config
2828COPY --chown=node:node docker/dspace-ui.json /app/dspace-ui.json
2929
30- # user node does not have root privileges so we need to ensure that
31- # necessary files exist and node has sufficient access rights
30+ WORKDIR /app
31+ USER node
32+
33+ # Ensure necessary files exist and have proper permissions
3234RUN mkdir -p /app/dist/browser/assets \
3335 && touch /app/dist/browser/assets/config.json \
3436 && find /app/dist/browser/assets -type d -exec chmod 750 {} \; \
3537 && find /app/dist/browser/assets -type f -exec chmod 640 {} \;
3638
37- WORKDIR /app
38- USER node
3939ENV NODE_ENV=production
4040EXPOSE 4000
4141CMD ["pm2-runtime", "start", "dspace-ui.json", "--json"]
You can’t perform that action at this time.
0 commit comments