From 3827162d4a81166e26ad8865fcf1eb8b28ad9d3c Mon Sep 17 00:00:00 2001 From: clkj <919284064@qq.com> Date: Tue, 16 Jun 2026 11:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 30ce5c3..8644c2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,12 @@ RUN npm ci FROM base AS builder COPY --from=deps /app/node_modules ./node_modules COPY . . + +ENV NEXT_TELEMETRY_DISABLED=1 RUN npx prisma generate ENV DATABASE_URL="file:./dev.db" RUN npx prisma db push -ENV NEXT_TELEMETRY_DISABLED=1 + RUN npm run build # 阶段3: 生产运行环境