Skip to content

Commit 2c3b6e4

Browse files
authored
Merge pull request #2527 from wucm667/fix/docker-pnpm-ignored-builds
fix(docker): 固定前端构建阶段 pnpm 版本为 v9
2 parents e318376 + 4499540 commit 2c3b6e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ FROM ${NODE_IMAGE} AS frontend-builder
2020

2121
WORKDIR /app/frontend
2222

23-
# Install pnpm
24-
RUN corepack enable && corepack prepare pnpm@latest --activate
23+
# Install pnpm (pinned to v9 to match CI and keep builds reproducible)
24+
RUN corepack enable && corepack prepare pnpm@9 --activate
2525

2626
# Install dependencies first (better caching)
2727
COPY frontend/package.json frontend/pnpm-lock.yaml ./

0 commit comments

Comments
 (0)