Skip to content

Commit 3649537

Browse files
committed
Add NPM global to PATH
1 parent c69616f commit 3649537

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/javascript-node/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ARG USERNAME=node
66
ARG NPM_GLOBAL=/usr/local/share/npm-global
77

88
RUN \
9+
# Add NPM global to PATH.
10+
ENV PATH=${NPM_GLOBAL}/bin:${PATH} \
911
# Configure global npm install location, use group to adapt to UID/GID changes
1012
if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \
1113
&& usermod -a -G npm ${USERNAME} \

0 commit comments

Comments
 (0)