chore: 优化 Docker 构建以适配中国服务器网络环境

- apt-get 切换阿里云镜像(http://),解决 slim 镜像无 ca-certificates 的 https 问题
- pnpm 切换 npmmirror 注册源,加速依赖下载
- 修复 better-sqlite3 编译:hoisted 模式、onlyBuiltDependencies、显式 rebuild
- 新增 mkdir -p data 避免容器启动时数据目录缺失

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-14 14:23:38 +08:00
parent 92720574ec
commit 013c0f14c4
3 changed files with 24 additions and 3 deletions

View File

@@ -15,7 +15,12 @@
"Bash(pip show:*)",
"Bash(pip3 show:*)",
"WebFetch(domain:ai.njcqtechaicoding.com)",
"Bash(CLAUDE_SKILL_DIR=/Users/kid/.claude/skills/web-access node:*)"
"Bash(CLAUDE_SKILL_DIR=/Users/kid/.claude/skills/web-access node:*)",
"Bash(docker build:*)",
"Bash(docker run:*)",
"Bash(docker stop:*)",
"Bash(docker compose:*)",
"Bash(ssh-keyscan 118.195.187.179)"
]
}
}