Files
go/Dockerfile
KoCoder 535d8bcbe3
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m21s
Fix: NVM_DIR Path
2026-05-17 02:30:15 +02:00

21 lines
516 B
Docker

FROM docker.io/codercom/enterprise-base:ubuntu
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
# 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 \"$@\"", "--"]