fix(docker): 禁用Turbopack避免big.js序列化错误

This commit is contained in:
2026-05-03 15:13:53 +08:00
parent 73909d9d6d
commit 16a1b05f6d
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
# 禁用 Next.js 遥测,并注入占位环境变量以通过编译
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
RUN npm run build -- --no-turbopack
# 阶段 3:生产运行环境
FROM node:20-alpine AS runner