build: add pnpm to the java-builder image

main
Fadhli Azhari 2026-04-28 14:25:34 +08:00
parent 69b0d9a9a8
commit fdd8544ed9
1 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,14 @@ RUN mkdir -p "${OWASP_DATA_DIR}" \
${NVD_API_KEY:+-DnvdApiKey="${NVD_API_KEY}"} \ ${NVD_API_KEY:+-DnvdApiKey="${NVD_API_KEY}"} \
-q || true -q || true
# ─────────────────────────────────────────────────────────────────────
# pnpm — via corepack (ships with Node.js)
# ─────────────────────────────────────────────────────────────────────
ARG PNPM_VERSION=10.15.0
RUN corepack enable \
&& corepack prepare "pnpm@${PNPM_VERSION}" --activate
# ───────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────
# ORAS CLI — for uploading artifacts to Harbor # ORAS CLI — for uploading artifacts to Harbor
# ───────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────
@ -74,4 +82,4 @@ RUN curl -fsSL "https://github.com/oras-project/oras/releases/download/v${ORAS_V
WORKDIR /workspace WORKDIR /workspace
# Verify installation # Verify installation
RUN java -version && mvn -version && node --version && oras version && jq --version RUN java -version && mvn -version && node --version && pnpm --version && oras version && jq --version