Files
go/Dockerfile
KoCoder dfb2e5b404
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m0s
Setup tools
2026-05-17 02:21:58 +02:00

21 lines
508 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=/root/.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 \"$@\"", "--"]