fix: Docker 基础镜像升级 node:20-alpine -> node:22-alpine

jsdom 30 依赖 markAsUncloneable API(Node >= 22),node:20 构建时报
"webidl.util.markAsUncloneable is not a function" 导致 pnpm build 失败。
builder 与 runner 两个 stage 同步升级,运行时渲染接口同样依赖 jsdom。
This commit is contained in:
2026-09-08 23:31:59 +08:00
parent f351bca924
commit 425460fa28
+2 -2
View File
@@ -1,6 +1,6 @@
# Dockerfile for Recipe Translation Tool # Dockerfile for Recipe Translation Tool
# Stage 1: Builder # Stage 1: Builder
FROM node:20-alpine AS builder FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
@@ -25,7 +25,7 @@ COPY . .
RUN pnpm build RUN pnpm build
# Stage 2: Runner # Stage 2: Runner
FROM node:20-alpine AS runner FROM node:22-alpine AS runner
WORKDIR /app WORKDIR /app