diff --git a/Dockerfile b/Dockerfile index 8f9a483..039f902 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,20 @@ FROM docker.io/codercom/enterprise-base:ubuntu -RUN echo "Hello go World" \ No newline at end of file +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 \"$@\"", "--"] +