chown /.npm
This commit is contained in:
parent
502150eafd
commit
efe7a3f76b
@ -2,6 +2,8 @@ FROM node:lts
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
WORKDIR /home/node/.npm
|
||||
RUN chown -R 1000:1000 "/home/node/.npm"
|
||||
WORKDIR /.npm
|
||||
RUN chown -R 1000660000:0 "/.npm"
|
||||
WORKDIR /home/node/app
|
||||
USER node
|
||||
COPY --chown=node:node . .
|
||||
|
Reference in New Issue
Block a user