use nvm way of installing nvm

This commit is contained in:
2025-07-25 13:56:53 +01:00
parent 884c749039
commit 7b18aeb19a
2 changed files with 10 additions and 92 deletions

View File

@ -1,12 +1,18 @@
FROM catthehacker/ubuntu:rust-latest
WORKDIR /app
COPY . .
ARG NODE_VERSION=24
# credit https://github.com/catthehacker/docker_images
RUN /app/install-node.sh
# install curl
RUN apt update && apt install curl -y
RUN rm install-node.sh
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN echo "NVM_DIR=/root/.nvm" | tee -a /etc/environment
# install node
RUN bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
# download static bin
ADD https://get.nexte.st/latest/linux cargo-nextest.tar.gz