Use the node source apt repo
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m7s

This commit is contained in:
2026-05-17 03:00:09 +02:00
parent 535d8bcbe3
commit 777ff9814a

View File

@@ -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