This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -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 \"$@\"", "--"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user