fix(ci): bump base image to node:22-alpine
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 6m21s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 6m21s
corepack-installed pnpm 11 requires node:sqlite (Node 22+). Build was failing in deps stage with ERR_UNKNOWN_BUILTIN_MODULE. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c3863a4dab
commit
6155638549
@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
# ───────────── 1. deps:安装依赖(含 prisma generate via postinstall) ─────────────
|
||||
FROM node:20-alpine AS deps
|
||||
FROM node:22-alpine AS deps
|
||||
RUN apk add --no-cache libc6-compat openssl
|
||||
WORKDIR /app
|
||||
|
||||
@ -12,7 +12,7 @@ COPY prisma ./prisma
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# ───────────── 2. builder:Next.js 构建(standalone 产物) ─────────────
|
||||
FROM node:20-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
RUN apk add --no-cache libc6-compat openssl
|
||||
WORKDIR /app
|
||||
|
||||
@ -25,7 +25,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN pnpm build
|
||||
|
||||
# ───────────── 3. runner:最小运行时镜像 ─────────────
|
||||
FROM node:20-alpine AS runner
|
||||
FROM node:22-alpine AS runner
|
||||
RUN apk add --no-cache libc6-compat openssl
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user