feat:修改 docker node 版本以兼容 next16

This commit is contained in:
hzm
2026-02-07 00:40:46 +08:00
parent e424ebcb52
commit 1b14faf73b

View File

@@ -6,7 +6,7 @@ RUN npm install --legacy-peer-deps
COPY . . COPY . .
RUN npx next build RUN npx next build
# ===== 运行阶段 ===== # ===== 运行阶段 =====
FROM node:18-bullseye AS runner FROM node:22-bullseye AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
COPY --from=builder /app/package.json ./ COPY --from=builder /app/package.json ./