refactor(devcontainer): 调整 Dockerfile 和 devcontainer 配置
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 1m46s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m44s
测试最新依赖 / build-and-test (push) Successful in 2m13s
测试最新依赖 / playwright (push) Successful in 2m31s

将 DEVCONTAINER 和 SANDBOX 环境变量从 Dockerfile 移至 devcontainer.json,
以提升配置的灵活性和一致性。同时,更新注释内容以准确反映当前安装脚本的功能。
This commit is contained in:
严浩
2025-11-09 22:26:03 +08:00
parent ac7cb6a31c
commit a9b916221c
2 changed files with 3 additions and 4 deletions

View File

@@ -85,6 +85,8 @@
"GOOGLE_GEMINI_BASE_URL": "${localEnv:GOOGLE_GEMINI_BASE_URL}",
"NODE_OPTIONS": "--max-old-space-size=4096",
"CLAUDE_CONFIG_DIR": "/home/usr_vscode/.claude",
"DEVCONTAINER": "true", // https://github.com/anthropics/claude-code/blob/1fe9e369a7c30805189cbbb72eb69c15ed4ec96b/.devcontainer/Dockerfile#L42
"SANDBOX": "sandbox-devcontainer", // gemini 显示这个。
"TZ": "${localEnv:TZ:Asia/Shanghai}"
},
"remoteUser": "usr_vscode",