From efe7a3f76bb4f4ef11b60ba8005d761cedad428a Mon Sep 17 00:00:00 2001 From: infidel Date: Tue, 6 Dec 2022 12:30:33 +0700 Subject: [PATCH] chown /.npm --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 597aea6..4d7806a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . .