fix: pnpm home fixed to /bin

main
Fadhli Azhari 2026-04-30 10:16:37 +08:00
parent ed3dd33149
commit 3876a4d065
1 changed files with 5 additions and 1 deletions

View File

@ -78,8 +78,12 @@ RUN corepack enable \
# installs land in a known location and their binaries resolve without # installs land in a known location and their binaries resolve without
# extra setup. (pnpm setup is interactive — this is the non-interactive # extra setup. (pnpm setup is interactive — this is the non-interactive
# equivalent.) # equivalent.)
#
# pnpm 11 moved the global bin from $PNPM_HOME to $PNPM_HOME/bin and
# now hard-errors ("The configured global bin directory ... is not in
# PATH") instead of warning if PATH doesn't include it.
ENV PNPM_HOME=/root/.local/share/pnpm ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH="${PNPM_HOME}:${PATH}" ENV PATH="${PNPM_HOME}/bin:${PATH}"
# ───────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────
# protoc-gen-es - TypeScript codegen plugin for buf 'local:' references. # protoc-gen-es - TypeScript codegen plugin for buf 'local:' references.