Commit Graph

12 Commits

Author SHA1 Message Date
胡旭 bf76975000 fix: start.sh 在 chown 之前 COPY(确保 nextjs 用户可读) 2026-06-24 17:29:08 +08:00
胡旭 57bbf1fece fix: 去掉 chmod(sh 执行不需要 +x) 2026-06-24 17:24:42 +08:00
胡旭 92d190a081 fix: prisma db push 移到启动时执行(保留用户数据)
构建时执行会覆盖用户拷贝的数据库文件,
改为容器启动时执行,已有数据则跳过。
2026-06-24 16:48:07 +08:00
胡旭 e6839da566 fix: Docker 构建前 prisma db push 创建表 2026-06-24 16:38:46 +08:00
胡旭 faa17f0ccd fix: Docker 安装 openssl(Prisma 引擎需要 libssl.so.1.1) 2026-06-24 16:30:16 +08:00
胡旭 814729df02 fix: Docker runner 拷贝完整 node_modules(pnpm .prisma 在 .pnpm 内) 2026-06-24 16:22:37 +08:00
胡旭 7fbfaa9572 fix: Docker 改用 pnpm 9,绕过 pnpm 11 build scripts 限制
pnpm 11 的 onlyBuiltDependencies 配置在 Docker 中始终不生效,
改用 npm 全局安装 pnpm 9 彻底解决。
2026-06-24 16:10:16 +08:00
胡旭 3bebf669bd fix: pnpm 11 onlyBuiltDependencies 移到 .npmrc
pnpm 11 不再读取 package.json 中的 pnpm 字段,
需要在 .npmrc 中配置 onlyBuiltDependencies。
2026-06-24 16:01:17 +08:00
胡旭 5e77c0fa61 fix: Dockerfile 移除多余的 .npmrc 拷贝 2026-06-24 15:56:00 +08:00
胡旭 56cd507e81 fix: pnpm 11 build scripts 允许 Prisma/sharp 等包执行
pnpm 11 默认阻止 build scripts,导致 Prisma Client 生成失败。
在 package.json 中添加 pnpm.onlyBuiltDependencies 白名单。
2026-06-24 15:55:40 +08:00
胡旭 6de0f6ad3d fix: Docker 基础镜像改为 node:22-alpine(pnpm 11 需要 node:sqlite) 2026-06-24 15:45:05 +08:00
胡旭 2f1a7c906d chore: 添加 Docker 部署配置
- Dockerfile: 多阶段构建(deps → build → runner)
- docker-compose.yml: 一键部署,数据持久化到 volume
- next.config.ts: output standalone 模式
- .dockerignore: 排除 node_modules、.next、dev.db
2026-06-24 15:25:37 +08:00