Fixed nodejs installation
Some checks failed
Deploy on push / on-push-deploy_sh-edraft (push) Failing after 21s

This commit is contained in:
Sven Heidemann 2023-11-28 15:37:19 +00:00
parent 2908bc5ebf
commit 687499c5b1

View File

@ -29,9 +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 RUN python3.10 -m pip install cpl-query --extra-index-url https://pip.sh-edraft.de
# install node # install node
RUN sud curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - ENV NVM_DIR /usr/local/nvm # or ~/.nvm , depending
RUN sudo apt -y install nodejs
RUN sudo apt -y install npm # Install nvm with node and npm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION v20.10.0
RUN sudo mkdir -p /usr/local/nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION"
ENV NODE_PATH $NVM_DIR/versions/node/$NODE_VERSION/bin
ENV PATH $NODE_PATH:$PATH
RUN sudo npm install -g @angular/cli RUN sudo npm install -g @angular/cli
RUN sudo npm install -g ts-node RUN sudo npm install -g ts-node