.npm redirected to ~/.npm
This commit is contained in:
parent
efe7a3f76b
commit
6d49860832
@ -1,9 +1,10 @@
|
|||||||
FROM node:lts
|
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
|
||||||
|
RUN mkdir -p /home/node/app/.npm && chown -R node:node /home/node/app/.npm
|
||||||
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
|
WORKDIR /.npm
|
||||||
RUN chown -R 1000660000:0 "/.npm"
|
RUN chown -R 1000660000:0 "/home/node/app/.npm"
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
USER node
|
USER node
|
||||||
COPY --chown=node:node . .
|
COPY --chown=node:node . .
|
||||||
|
Reference in New Issue
Block a user