We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3649537 commit f82d1e1Copy full SHA for f82d1e1
src/javascript-node/Dockerfile
@@ -5,9 +5,10 @@ FROM node:${VARIANT}
5
ARG USERNAME=node
6
ARG NPM_GLOBAL=/usr/local/share/npm-global
7
8
+# Add NPM global to PATH.
9
+ENV PATH=${NPM_GLOBAL}/bin:${PATH}
10
+
11
RUN \
- # Add NPM global to PATH.
- ENV PATH=${NPM_GLOBAL}/bin:${PATH} \
12
# Configure global npm install location, use group to adapt to UID/GID changes
13
if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \
14
&& usermod -a -G npm ${USERNAME} \
0 commit comments