返回 CodeWhale
devcontainer.json
根目录 / .devcontainer / devcontainer.json
1 {
2 "name": "CodeWhale",
3 "build": {
4 "context": "..",
5 "dockerfile": "Dockerfile",
6 "args": {
7 "RUST_VERSION": "1.88"
8 }
9 },
10 "customizations": {
11 "vscode": {
12 "extensions": [
13 "rust-lang.rust-analyzer",
14 "tamasfe.even-better-toml",
15 "vadimcn.vscode-lldb"
16 ],
17 "settings": {
18 "rust-analyzer.cargo.features": "all",
19 "editor.formatOnSave": true
20 }
21 }
22 },
23 "remoteEnv": {
24 "DEEPSEEK_API_KEY": "${localEnv:DEEPSEEK_API_KEY}",
25 "CARGO_TARGET_DIR": "/home/codewhale/.cargo/target"
26 },
27 "mounts": [
28 "source=codewhale-state,target=/home/codewhale/.codewhale,type=volume",
29 "source=codewhale-cargo-target,target=/home/codewhale/.cargo/target,type=volume"
30 ],
31 "postCreateCommand": "cargo build --locked",
32 "remoteUser": "codewhale"
33 }
34
34 lines JSON