Commit Graph
3 Commits
Author SHA1 Message Date
Sakurasan d357134e97 fix: 修 Docker 构建失败,compose 补上生产必需的 OT_JWT_COOKIE_SECURE
- pnpm 11 默认拒绝发布不足 1 天的依赖(供应链策略),锁文件里
  tailwind v4 的 @csstools 传递依赖会踩中,导致镜像构建失败且
  pnpm build 的 run 前自检(隐式 install)还会再次踩中。pnpm 11
  该配置只认 pnpm-workspace.yaml(.npmrc/ENV 均不生效),在
  web-builder 阶段写入 minimumReleaseAge: 0;frozen-lockfile +
  --ignore-scripts 两道闸仍在,放开无风险
- config.validate 的生产 fail-fast 要求 refresh cookie 必须 Secure,
  compose 漏配 OT_JWT_COOKIE_SECURE 导致新镜像启动即被拒绝
2026-10-30 02:20:57 +08:00
SakurasanandClaude 8495694671 构建: 入口脚本 chown 数据目录后降权运行
绑定挂载/命名卷被 docker 以 root 自动创建时,容器非 root 用户
写不进 db(SQLITE_CANTOPEN)。改为 entrypoint 以 root 启动,
chown 数据目录到 OT_UID:OT_GID(默认 1000:1000)后 su-exec 降权,
compose 不再需要 user: 覆盖。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-18 22:25:43 +08:00
SakurasanandClaude 5aa0be13dc 部署: docker-compose 一键启动
- 密钥从仓库根 .env 读取(:? 缺失即报错)
- db 绑定挂载当前目录 ./data,按宿主用户运行(OT_UID/OT_GID 可覆盖)
- healthcheck 探测 /healthz,restart unless-stopped

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-18 21:57:16 +08:00