fix: Docker 构建前 prisma db push 创建表

This commit is contained in:
胡旭
2026-06-24 16:38:46 +08:00
parent faa17f0ccd
commit e6839da566
+1
View File
@@ -18,6 +18,7 @@ RUN npm install -g pnpm@9
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
RUN pnpm exec prisma db push --skip-generate
RUN pnpm build
# ── 运行层 ──