Skip to content

Commit 0e90fa0

Browse files
Combine npm install and chown commands in Dockerfile
1 parent aa12f70 commit 0e90fa0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ LABEL Maintainer="contact@snpranav.com"
55
RUN apk update && apk add git
66

77
# Installing Yeoman and VS Code Extension Generator globally
8-
RUN npm install -g yo generator-code
9-
RUN chown -R node:node /usr/local/lib/node_modules
8+
RUN npm install -g yo generator-code \
9+
&& chown -R node:node /usr/local/lib/node_modules
1010

1111
WORKDIR /usr/src/app
1212

@@ -17,4 +17,4 @@ COPY . .
1717

1818
RUN chown -R node:node /usr/src/app
1919
USER node
20-
ENTRYPOINT [ "yo", "code" ]
20+
ENTRYPOINT [ "yo", "code" ]

0 commit comments

Comments
 (0)