From ea9e7fb5d01fabe0fc8bf37202fde37c8f1386bd Mon Sep 17 00:00:00 2001 From: infidel Date: Tue, 6 Dec 2022 16:02:06 +0700 Subject: [PATCH] Change chown 1000 to 100065*** --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index abe9b6d..05fec4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM node:lts 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 -RUN chown -R 1000:1000 "/home/node/.npm" -WORKDIR /.npm -RUN chown -R 1000660000:0 "/.npm" -RUN chown -R 1000:1000 "/home/node/app/.npm" +RUN mkdir -p /home/node/.npm && chown -R node:node /home/node/.npm +RUN mkdir -p /.npm && chown -R node:node /.npm +RUN chown -R 1000650000:0 "/.npm" +RUN chown -R 1000650000:0 "/home/node/.npm" +RUN chown -R 1000650000:0 "/home/node/app/.npm" WORKDIR /home/node/app COPY --chown=node:node . . RUN npm config set cache /home/node/app/.npm/