From 25ca9a06b4f9ae5baabd518561163ba4f883393f 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 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index c2ff2b0..bfd5cf6 100644 --- a/dockerfile +++ b/dockerfile @@ -29,8 +29,18 @@ 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-get update +RUN sudo apt-get install -y ca-certificates curl gnupg +RUN sudo mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + +RUN NODE_MAJOR=18 +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + +RUN sudo apt-get update +RUN sudo apt-get install nodejs -y + + RUN sudo apt -y install npm RUN sudo npm install -g @angular/cli RUN sudo npm install -g ts-node