Merge pull request #2527 from wucm667/fix/docker-pnpm-ignored-builds

fix(docker): 固定前端构建阶段 pnpm 版本为 v9
This commit is contained in:
Wesley Liddick 2026-05-19 09:30:10 +08:00 committed by GitHub
commit 2c3b6e4a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,8 @@ FROM ${NODE_IMAGE} AS frontend-builder
WORKDIR /app/frontend
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
# Install pnpm (pinned to v9 to match CI and keep builds reproducible)
RUN corepack enable && corepack prepare pnpm@9 --activate
# Install dependencies first (better caching)
COPY frontend/package.json frontend/pnpm-lock.yaml ./