This is an automated email from the ASF dual-hosted git repository.

wu-sheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-horizon-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new cfed07a  ci: Dockerfile — pin [email protected] in corepack prepare so the 
step doesn't need workspace package.json on disk yet.
cfed07a is described below

commit cfed07a1b69fd130559a0cc238ec5f2d6a913832
Author: Wu Sheng <[email protected]>
AuthorDate: Thu May 14 20:27:03 2026 +0800

    ci: Dockerfile — pin [email protected] in corepack prepare so the step doesn't 
need workspace package.json on disk yet.
---
 Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 51d893b..538f7af 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,10 +23,10 @@ WORKDIR /workspace
 # argon2 (password hashing) builds a native module; alpine needs python + a
 # C toolchain at build time. The deps are dropped from the runtime stage.
 RUN apk add --no-cache python3 make g++ libc6-compat
-# corepack reads `packageManager` from package.json — no need to pin the
-# pnpm version here. Adding `--activate` so the binary is in PATH for
-# subsequent layers.
-RUN corepack enable && corepack prepare --activate
+# Activate the pnpm version pinned in the repo's root `package.json`.
+# We pin it here too so `corepack prepare` doesn't need package.json
+# on disk yet (it runs before the COPY of workspace manifests).
+RUN corepack enable && corepack prepare [email protected] --activate
 
 COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
 COPY apps/bff/package.json apps/bff/

Reply via email to