chown /.npm

This commit is contained in:
infidel 2022-12-06 12:30:33 +07:00
parent 502150eafd
commit efe7a3f76b

View File

@ -2,6 +2,8 @@ FROM node:lts
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/.npm WORKDIR /home/node/.npm
RUN chown -R 1000:1000 "/home/node/.npm" RUN chown -R 1000:1000 "/home/node/.npm"
WORKDIR /.npm
RUN chown -R 1000660000:0 "/.npm"
WORKDIR /home/node/app WORKDIR /home/node/app
USER node USER node
COPY --chown=node:node . . COPY --chown=node:node . .