Skip to content

Commit

Permalink
Merge pull request #12 from phase2/issue/NT-fix-yarn-not-found
Browse files Browse the repository at this point in the history
Add yarn to default-packages to install with NVM
  • Loading branch information
tekante authored May 7, 2024
2 parents b2541dd + 57c9860 commit a9ab147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ SHELL ["/bin/bash", "-c"]
# Install additional global npm dependencies
RUN \
# Initialize the user environment (this loads nvm)
. "$HOME"/.profile && npm install -g yarn
# Also write yarn to the default-packages file to be installed with nvm
. "$HOME"/.profile && echo "yarn" > "$NVM_DIR"/default-packages

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

0 comments on commit a9ab147

Please sign in to comment.