From 425460fa2851826060837ff12dfc5ddb7836765f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=92=E5=AF=92?= <2596194220@qq.com> Date: Tue, 8 Sep 2026 23:31:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Docker=20=E5=9F=BA=E7=A1=80=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=8D=87=E7=BA=A7=20node:20-alpine=20->=20node:22-alp?= =?UTF-8?q?ine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jsdom 30 依赖 markAsUncloneable API(Node >= 22),node:20 构建时报 "webidl.util.markAsUncloneable is not a function" 导致 pnpm build 失败。 builder 与 runner 两个 stage 同步升级,运行时渲染接口同样依赖 jsdom。 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb98b26..8624842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Dockerfile for Recipe Translation Tool # Stage 1: Builder -FROM node:20-alpine AS builder +FROM node:22-alpine AS builder WORKDIR /app @@ -25,7 +25,7 @@ COPY . . RUN pnpm build # Stage 2: Runner -FROM node:20-alpine AS runner +FROM node:22-alpine AS runner WORKDIR /app