From ae2e607a2a0dda58bd715edba6428a60cc645792 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index c2ff2b0..972daab 100644 --- a/dockerfile +++ b/dockerfile @@ -29,9 +29,13 @@ 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 + +# 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 + RUN sudo npm install -g @angular/cli RUN sudo npm install -g ts-node