Setup tools
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m0s

This commit is contained in:
2026-05-17 02:21:58 +02:00
parent 707c3927fb
commit dfb2e5b404

View File

@@ -1,3 +1,20 @@
FROM docker.io/codercom/enterprise-base:ubuntu
RUN echo "Hello go World"
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 \"$@\"", "--"]