From 61539a1b79a913e5c2160e441f4c6606bd9051fc Mon Sep 17 00:00:00 2001 From: infidel Date: Tue, 6 Dec 2022 15:45:47 +0700 Subject: [PATCH] Move user declaration to the last command before commit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cf5f6df..abe9b6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,10 @@ WORKDIR /.npm RUN chown -R 1000660000:0 "/.npm" RUN chown -R 1000:1000 "/home/node/app/.npm" WORKDIR /home/node/app -USER node COPY --chown=node:node . . RUN npm config set cache /home/node/app/.npm/ RUN npm install EXPOSE 5000 +USER node CMD ["npm", "run", "dev"]