Add Go support to dev containers and Makefile
This commit is contained in:
@@ -10,13 +10,17 @@ RUN dnf update -y && dnf install -y \
|
||||
# 2. 环境变量
|
||||
ENV CARGO_HOME=/usr/local/cargo \
|
||||
RUSTUP_HOME=/usr/local/rustup \
|
||||
BUN_INSTALL="/root/.bun"
|
||||
ENV PATH="$BUN_INSTALL/bin:/usr/local/cargo/bin:${PATH}"
|
||||
BUN_INSTALL="/root/.bun" \
|
||||
GOPATH="/root/go"
|
||||
ENV PATH="$BUN_INSTALL/bin:/usr/local/cargo/bin:/usr/local/go/bin:$GOPATH/bin:${PATH}"
|
||||
RUN chsh -s /bin/zsh root
|
||||
|
||||
# 3. 安装 Rust & Bun
|
||||
# 3. 安装 Rust & Bun & Go
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
RUN curl -fsSL https://go.dev/dl/go1.24.4.linux-amd64.tar.gz | tar -C /usr/local -xzf - \
|
||||
&& go install golang.org/x/tools/gopls@latest \
|
||||
&& go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
|
||||
# 4. 全局安装 AI 工具
|
||||
RUN bun install -g opencode-ai
|
||||
|
||||
Reference in New Issue
Block a user