From fbdfc474123161ff3c8569b0a5ebf50a119b039f Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 28 Nov 2023 15:37:19 +0000 Subject: [PATCH] Fixed nodejs installation --- dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index c2ff2b0..8011f92 100644 --- a/dockerfile +++ b/dockerfile @@ -29,9 +29,16 @@ RUN python3.10 -m pip install cpl-cli --extra-index-url https://pip.sh-edraft.de RUN python3.10 -m pip install cpl-query --extra-index-url https://pip.sh-edraft.de # install node -RUN sud curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - -RUN sudo apt -y install nodejs -RUN sudo apt -y install npm +ENV NVM_DIR /usr/local/nvm # or ~/.nvm , depending +ENV NODE_VERSION 21.2.0 + +# Install nvm with node and npm +RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.39.5/install.sh | bash \ + && . $NVM_DIR/nvm.sh \ + && sudo nvm install $NODE_VERSION \ + && sudo nvm alias default $NODE_VERSION \ + && sudo nvm use default + RUN sudo npm install -g @angular/cli RUN sudo npm install -g ts-node