From a3ae25fafcb05e093f807f4b403dc9af8103ec6e Mon Sep 17 00:00:00 2001 From: Ilya Shapkin Date: Fri, 8 Aug 2025 00:04:30 +0300 Subject: [PATCH] fix(pwa): ensure next is available during production build Fixes #2851 "Building PWA Prod results in sh: next: not found errors" --- pwa/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pwa/Dockerfile b/pwa/Dockerfile index 1ff924ded0..35ce1a5a83 100644 --- a/pwa/Dockerfile +++ b/pwa/Dockerfile @@ -33,13 +33,13 @@ CMD ["sh", "-c", "pnpm install; pnpm dev"] FROM base AS builder -COPY --link pnpm-lock.yaml ./ -RUN pnpm fetch --prod +COPY package.json pnpm-lock.yaml ./ -COPY --link . . +RUN pnpm install --frozen-lockfile --prod -RUN pnpm install --frozen-lockfile --offline --prod && \ - pnpm run build +COPY . . + +RUN pnpm run build # Production image, copy all the files and run next