更新 Dockerfile
This commit is contained in:
+3
-1
@@ -10,10 +10,12 @@ RUN npm ci
|
|||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
RUN npx prisma generate
|
RUN npx prisma generate
|
||||||
ENV DATABASE_URL="file:./dev.db"
|
ENV DATABASE_URL="file:./dev.db"
|
||||||
RUN npx prisma db push
|
RUN npx prisma db push
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# 阶段3: 生产运行环境
|
# 阶段3: 生产运行环境
|
||||||
|
|||||||
Reference in New Issue
Block a user