Skip to content

Commit 2e4074d

Browse files
committed
Add yarn to default-packages to install with NVM
1 parent f022263 commit 2e4074d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ SHELL ["/bin/bash", "-c"]
5252
# Install additional global npm dependencies
5353
RUN \
5454
# Initialize the user environment (this loads nvm)
55-
. "$HOME"/.profile
55+
# Also write yarn to the default-packages file to be installed with nvm
56+
. "$HOME"/.profile && echo "yarn" > "$NVM_DIR"/default-packages
5657

5758
# IMPORTANT! Switching back to the root user as the last instruction.
5859
USER root

0 commit comments

Comments
 (0)