The official Next.js Dockerfile example does not work if I switch npm to pnpm.
How should I modify that Dockerfile so that it remains multi-stage, but also uses pnpm instead of npm?
I know I'm a bit late, but this is what worked for me:
RUN apk add --no-cache curl \
&& curl -sL https://unpkg.com/@pnpm/self-installer | node