From 777ff9814a1419d89d7df3e3bfe2cf8fae995fe8 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Sun, 17 May 2026 03:00:09 +0200 Subject: [PATCH] Use the node source apt repo --- Dockerfile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42422ec..bf3c5be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,9 @@ RUN sudo apt update && sudo apt upgrade -y RUN sudo apt install curl golang-go delve git -y # install nvm -RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash +RUN curl -fsSL https://deb.nodesource.com/setup_24.x | sudo bash - -# set env -ENV NVM_DIR="/home/coder/.nvm" - -# install node -RUN bash -c "source $NVM_DIR/nvm.sh && nvm install --lts" - -# install buf -RUN bash -c "source $NVM_DIR/nvm.sh && npm install -g @bufbuild/buf" - -ENTRYPOINT ["bash", "-c", "source $NVM_DIR/nvm.sh && exec \"$@\"", "--"] +RUN sudo apt install -y nodejs +RUN node -v +RUN npm -v