diff --git a/dockerfile b/dockerfile index c2ff2b0..3ce1880 100644 --- a/dockerfile +++ b/dockerfile @@ -28,10 +28,18 @@ RUN python3.10 -m pip install --user --upgrade pip 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 + +# Install node and npm +RUN sudo apt update +RUN sudo apt 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 +ENV NODE_MAJOR=20 +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 update +RUN sudo apt install nodejs -y +RUN sudo apt install npm -y + RUN sudo npm install -g @angular/cli RUN sudo npm install -g ts-node