From 2e4074d12f969b8b86468e011044ceae642df76c Mon Sep 17 00:00:00 2001 From: Brian Kildow Date: Tue, 7 May 2024 17:30:04 -0400 Subject: [PATCH] Add yarn to default-packages to install with NVM --- src/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dockerfile b/src/Dockerfile index 3e647a1..5595397 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -52,7 +52,8 @@ SHELL ["/bin/bash", "-c"] # Install additional global npm dependencies RUN \ # Initialize the user environment (this loads nvm) - . "$HOME"/.profile + # 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