feat:修改 docker node 版本以兼容 next16
This commit is contained in:
@@ -6,7 +6,7 @@ RUN npm install --legacy-peer-deps
|
||||
COPY . .
|
||||
RUN npx next build
|
||||
# ===== 运行阶段 =====
|
||||
FROM node:18-bullseye AS runner
|
||||
FROM node:22-bullseye AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=builder /app/package.json ./
|
||||
|
||||
Reference in New Issue
Block a user