From ccc7520a15c6dd2f9c21aa6f6c4212a42f02f842 Mon Sep 17 00:00:00 2001 From: "aspire-repo-bot[bot]" <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 04:09:25 +0000 Subject: [PATCH] docs: document pnpm and Bun runtime support for PublishAsNpmScript Documents microsoft/aspire#17178 which fixes the pnpm PublishAsNpmScript Docker runtime. The generated runtime Dockerfile now enables pnpm via Corepack before running the entrypoint, and Bun reuses the Bun build image for the runtime stage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../docs/deployment/javascript-apps.mdx | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/frontend/src/content/docs/deployment/javascript-apps.mdx b/src/frontend/src/content/docs/deployment/javascript-apps.mdx index 37dcc23f6..fb4578ff2 100644 --- a/src/frontend/src/content/docs/deployment/javascript-apps.mdx +++ b/src/frontend/src/content/docs/deployment/javascript-apps.mdx @@ -487,6 +487,35 @@ await builder.build().run(); The generated container sets `HOST=0.0.0.0` and `HOSTNAME=0.0.0.0` so the server binds to all interfaces inside the container network. +### pnpm and Bun with PublishAsNpmScript + +`PublishAsNpmScript` works with pnpm and Bun in addition to npm and Yarn. The generated runtime Dockerfile stage is tailored to the package manager: + +- **pnpm**: The runtime stage runs `corepack enable pnpm && pnpm --version` before the entrypoint, so pnpm is available when the start script executes. Without this step, the container fails at startup with exit code 127 because pnpm is not included in the base `node:alpine` image. +- **Bun**: The runtime stage reuses the Bun build image rather than switching to a Node.js image, because `bun run