Skip to content

Commit 6a52b11

Browse files
committed
feature: docker: io: go, rust
1 parent 9a053ec commit 6a52b11

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docker/Dockerfile.io

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ WORKDIR /usr/src/cloudcmd
88
COPY package.json /usr/src/cloudcmd/
99

1010
ENV DEBIAN_FRONTEND=noninteractive
11+
ARG GO_VERSION=1.21.2
1112

1213
RUN apt-get update && apt-get upgrade && apt-get autoremove && \
1314
apt-get install -y less ffmpeg net-tools netcat-openbsd mc iputils-ping vim neovim bat fzf \
@@ -34,6 +35,17 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
3435
mv ~/.deno /usr/local/src/deno && \
3536
chmod a+rwx /usr/local/src/deno && \
3637
ln -s /usr/local/src/deno/bin/deno /usr/local/bin/deno && \
38+
echo "> install golang" && \
39+
curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz -o go.tar.gz && \
40+
tar -C /usr/local -xzf go.tar.gz && \
41+
rm go.tar.gz && \
42+
ln -s /usr/local/go/bin/go /usr/local/bin/go && \
43+
ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt && \
44+
echo "> install rust" && \
45+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
46+
mv ~/.cargo /usr/local/src/cargo && \
47+
chmod a+rwx /usr/local/src/cargo && \
48+
echo "> install gritty" && \
3749
bun r gritty --omit dev && \
3850
bun i gritty --omit dev && \
3951
bun pm cache rm && \
@@ -67,6 +79,8 @@ ENV cloudcmd_terminal_path=gritty
6779
ENV cloudcmd_open=false
6880
6981
ENV PATH=node_modules/.bin:$PATH
82+
ENV PATH=/usr/local/src/cargo/bin:$PATH
83+
7084
ENV BUN_INSTALL_CACHE_DIR=/tmp/bun-cache
7185
7286
ENV LANG=en_US.UTF-8

0 commit comments

Comments
 (0)