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

@@ -16,5 +16,8 @@
"@types/express": "^5.0.0",
"@types/node": "^22.10.0",
"typescript": "^5.7.0"
},
"pnpm": {
"onlyBuiltDependencies": ["better-sqlite3"]
}
}