构建: 多架构 Dockerfile + 构建脚本

- Dockerfile 三阶段:前端固定在 BUILDPLATFORM 编译一次(平台无关产物),
  Go 后端按 TARGETARCH 交叉编译,两种架构共用同一份 web/dist
- 前端用 pnpm --ignore-scripts(pnpm≥10 拦截 esbuild/vue-demi postinstall,
  esbuild 走 optionalDependencies 自带二进制),运行镜像非 root + /app/data 卷
- scripts/build-image.sh:--local 本地单架构加载;默认多架构 amd64+arm64 推送

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sakurasan
2026-08-18 13:16:54 +08:00
co-authored by Claude
parent 967c54ae32
commit ea7f023228
3 changed files with 141 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# VCS
.git
.gitignore
# 依赖与构建产物(镜像内重新安装/构建)
**/node_modules
**/dist
server/bin
# 本地数据与密钥
data/
*.db
*.log
.env
.env.*
# 编辑器/系统
.DS_Store
.idea/
.vscode/