From 0e90fa0932197de37015ba19cdf187a75644d4ed Mon Sep 17 00:00:00 2001 From: Chandu Surisetty <68140710+chandusurisetty@users.noreply.github.com> Date: Tue, 30 Dec 2025 11:08:59 +0530 Subject: [PATCH] Combine npm install and chown commands in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9c31fb6..237a9428 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ LABEL Maintainer="contact@snpranav.com" RUN apk update && apk add git # Installing Yeoman and VS Code Extension Generator globally -RUN npm install -g yo generator-code -RUN chown -R node:node /usr/local/lib/node_modules +RUN npm install -g yo generator-code \ + && chown -R node:node /usr/local/lib/node_modules WORKDIR /usr/src/app @@ -17,4 +17,4 @@ COPY . . RUN chown -R node:node /usr/src/app USER node -ENTRYPOINT [ "yo", "code" ] \ No newline at end of file +ENTRYPOINT [ "yo", "code" ]