From 6d49860832dd3a47de26e4b8327f35a896588594 Mon Sep 17 00:00:00 2001 From: infidel Date: Tue, 6 Dec 2022 12:57:43 +0700 Subject: [PATCH] .npm redirected to ~/.npm --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4d7806a..c606c30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ 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 1000660000:0 "/home/node/app/.npm" WORKDIR /home/node/app USER node COPY --chown=node:node . .