Add Go support to dev containers and Makefile

This commit is contained in:
2026-02-25 14:07:16 +08:00
parent d04243817e
commit dc947beafa
4 changed files with 19 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ services:
build:
context: .
# 根据需要切换 Dockerfile.fedora 或 Dockerfile.ubuntu
dockerfile: Dockerfile.fedora
dockerfile: Dockerfile.fedora
args:
# 将路径传递给 Dockerfile 阶段
CONTAINER_WORKSPACE: ${CONTAINER_WORKSPACE_PATH:-/workspace}
@@ -27,6 +27,7 @@ services:
- ${SSH_PUB_KEY_PATH:-~/.ssh/id_ed25519.pub}:/tmp/host_id_ed25519.pub:ro
- cargo-cache:/usr/local/cargo/registry
- bun-cache:/root/.bun/install/cache
- go-cache:/root/go
# --- 新增Zed 远程开发缓存 ---
- zed-server:/root/.zed_server
- zed-share:/root/.local/share/zed
@@ -38,5 +39,6 @@ volumes:
ssh-data:
cargo-cache:
bun-cache:
go-cache:
zed-server:
zed-share: