From d08ef09b3af1c9274d0b8c180c7acfa917550b82 Mon Sep 17 00:00:00 2001 From: wonder Date: Tue, 3 Nov 2026 12:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20CI=EF=BC=9A=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E9=95=9C=E5=83=8F=E5=8D=87=E7=BA=A7=20node:22-alpine?= =?UTF-8?q?=EF=BC=8Cpnpm=20=E5=9B=BA=E5=AE=9A=2011.28.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm 11 要求 Node >= 22.13,node:20-alpine 无法运行 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3977f06..907581b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # ---- 构建阶段:由 data/ + templates/ 生成静态站点 ---- -FROM node:20-alpine AS build +FROM node:22-alpine AS build WORKDIR /app # 跳过 Playwright 浏览器下载(构建无需浏览器) ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 -# 国内镜像安装依赖(CI runner 在阿里云) -RUN npm install -g pnpm@11 --registry=https://registry.npmmirror.com +# 国内镜像安装依赖(CI runner 在阿里云);pnpm 版本与本地生成 lockfile 的一致 +RUN npm install -g pnpm@11.28.5 --registry=https://registry.npmmirror.com COPY package.json pnpm-lock.yaml .npmrc ./ RUN pnpm install --frozen-lockfile