File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 26
26
"ghcr.io/devcontainers/features/git:1" : {}
27
27
},
28
28
"postCreateCommand" : " npm install" ,
29
- "remoteUser" : " node"
29
+ "remoteUser" : " node" ,
30
+ "postStartCommand" : " npm install -g @vscode/vsce"
30
31
}
Original file line number Diff line number Diff line change @@ -8,15 +8,5 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
8
8
&& apt-get clean -y \
9
9
&& rm -rf /var/lib/apt/lists/*
10
10
11
- # Switch to non-root user for npm global installs
12
- USER node
13
-
14
- # Install global node packages
15
- RUN npm install -g @vscode/vsce@latest yo@latest generator-code@latest \
16
- && npm cache clean --force
17
-
18
- # Verify installations
19
- RUN echo "Verifying installations..." \
20
- && vsce --version \
21
- && yo --version \
22
- && which generator-code
11
+ # Switch to non-root user for npm operations
12
+ USER node
You can’t perform that action at this time.
0 commit comments