fix: improve dev container permissions and caches

This commit is contained in:
jbwfu
2026-03-03 16:56:08 +08:00
parent 183f3ab71e
commit cd49af06dc
4 changed files with 71 additions and 24 deletions
+8 -7
View File
@@ -8,15 +8,16 @@ services:
- "8052:8052"
- "5173:5173"
volumes:
- .:/app
- .:/app:Z
- baihu-envs:/app/envs
- baihu-node-modules:/app/web/node_modules
- go-mod-cache:/go/pkg/mod
- npm-cache:/root/.npm
- go-path:/go
- npm-cache:/var/cache/npm
environment:
- TZ=Asia/Shanghai
- DEV_UID=${UID:-1000}
- DEV_GID=${GID:-1000}
- DEV_UID=${DEV_UID:-1000}
- DEV_GID=${DEV_GID:-1000}
- MISE_YES=1 # Auto-confirm mise prompts
stdin_open: true
tty: true
@@ -25,7 +26,7 @@ volumes:
name: baihu_dev_envs
baihu-node-modules:
name: baihu_dev_node_modules
go-mod-cache:
name: baihu_dev_go_cache
go-path:
name: baihu_dev_go_path
npm-cache:
name: baihu_dev_npm_cache