添加 kilocode 容器支持和通用 Docker 配置

- 添加 kilocode devcontainer 配置
- 新增 Fedora 和 Ubuntu Dockerfile
- 添加构建自动化 (Makefile, compose.yml)
- 配置环境变量管理 (.env, .env.example)
This commit is contained in:
2025-12-25 00:28:15 +08:00
parent aca5f52bc2
commit 635d113b4f
14 changed files with 605 additions and 1 deletions

36
vibe-dev/compose.yml Normal file
View File

@@ -0,0 +1,36 @@
services:
vibe-dev:
build:
context: .
# 根据需要切换 Dockerfile.fedora 或 Dockerfile.ubuntu
dockerfile: Dockerfile.fedora
args:
# 将路径传递给 Dockerfile 阶段
CONTAINER_WORKSPACE: ${CONTAINER_WORKSPACE_PATH:-/workspace}
container_name: vibe-coding-env
env_file: .env
environment:
# 让容器内部程序也能感知工作目录
- WORKSPACE=${CONTAINER_WORKSPACE_PATH:-/workspace}
ports:
- "${SSH_PORT:-2222}:22"
- "6300:3000"
- "6173-6175:5173-5175"
volumes:
- ${HOST_PROJECT_PATH:-.}:${CONTAINER_WORKSPACE_PATH:-/workspace}:cached
- ${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
# --- 新增Zed 远程开发缓存 ---
- zed-server:/root/.zed
- zed-share:/root/.local/share/zed
stdin_open: true
tty: true
restart: always
volumes:
cargo-cache:
bun-cache:
zed-server:
zed-share: