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