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