@@ -34,9 +34,12 @@ RUN $INS g++ gcc
3434
3535# ## go ###
3636USER coder
37- RUN sudo apt install golang-go -y
38- # install the new golang version
39- # RUN go install golang.org/dl/go1.17.2@latest && go version
37+ RUN wget -O go.tar.gz https://golang.org/dl/go1.17.2.linux-amd64.tar.gz \
38+ && tar -xf go.tar.gz \
39+ && sudo chown -R root:root ./go \
40+ && sudo mv -v go /usr/local \
41+ && echo "export GOPATH=$HOME/go\n export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.profile \
42+ && source ~/.profile
4043
4144# ## ruby ###
4245USER coder
@@ -80,26 +83,26 @@ RUN sudo mkdir -p $CARGO_HOME \
8083
8184RUN bash -lc "cargo install cargo-watch cargo-edit cargo-tree cargo-workspaces"
8285
83- # ## docker ###
84- USER root
85- ENV TRIGGER_REBUILD=3
86- # https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
87- RUN curl -fsSL https://get.docker.com -o get-docker.sh
88- RUN sh get-docker.sh
86+ # # ## docker ###
87+ # USER root
88+ # ENV TRIGGER_REBUILD=3
89+ # # https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
90+ # RUN curl -fsSL https://get.docker.com -o get-docker.sh
91+ # RUN sh get-docker.sh
8992
90- RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
91- && chmod +x /usr/bin/slirp4netns
93+ # RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
94+ # && chmod +x /usr/bin/slirp4netns
9295
93- RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
94- && chmod +x /usr/local/bin/docker-compose
96+ # RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
97+ # && chmod +x /usr/local/bin/docker-compose
9598
96- # ## docker:dive ###
97- RUN curl -o /tmp/dive.deb -fsSL https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.deb \
98- && apt install /tmp/dive.deb \
99- && rm /tmp/dive.deb
99+ # # ## docker:dive ###
100+ # RUN curl -o /tmp/dive.deb -fsSL https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.deb \
101+ # && apt install /tmp/dive.deb \
102+ # && rm /tmp/dive.deb
100103
101- # enables docker starting with systemd
102- RUN systemctl enable docker
104+ # # enables docker starting with systemd
105+ # RUN systemctl enable docker
103106
104107# ## zsh ###
105108USER coder
@@ -134,6 +137,7 @@ RUN brew install gh glab doctl duf \
134137 && curl -fsSL https://code-server.dev/install.sh | sh
135138RUN wget https://raw.githubusercontent.com/cdr/code-server/main/ci/release-image/entrypoint.sh && sudo chmod 755 entrypoint.sh \
136139 && sudo mv entrypoint.sh /usr/bin/entrypoint.sh
140+ RUN alias code="code-server"
137141
138142# ## install fixuid ###
139143USER root
0 commit comments