diff --git a/Dockerfile b/Dockerfile index e99cd55e8..512044c69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ WORKDIR /app # Copy package.json first to cache node_modules COPY package.json pnpm-lock.yaml pnpm-workspace.yaml . +# Match packageManager in package.json (pnpm is not bundled in the Node image) +RUN corepack enable && corepack prepare pnpm@11.5.2 --activate + RUN pnpm install # Copy code and build with cached modules