From 6e0a5c461f39c5c33bcc0d4fc26d875a989e45f6 Mon Sep 17 00:00:00 2001 From: z Date: Sun, 5 Jul 2026 07:49:39 -0700 Subject: [PATCH] =?UTF-8?q?fix(docker):=20decouple=20frontend=20build=20fr?= =?UTF-8?q?om=20backend+orchestrator=20=E2=80=94=20Next16=20Turbopack=20fr?= =?UTF-8?q?ontend=20build=20hangs=2043min=E2=86=92runner-kill,=20blocking?= =?UTF-8?q?=20ALL=203=20images;=20shared=20stage=20now=20builds=20only=20b?= =?UTF-8?q?ackend+orchestrator,=20frontend=20builds=20isolated=20in=20its?= =?UTF-8?q?=20own=20stage.=20Unblocks=20the=20temporal=20cutover=20(needs?= =?UTF-8?q?=20backend+orchestrator=20only).=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hanzo Dev --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c3a3622..120c634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN npm --no-update-notifier --no-fund --global install pnpm@10.6.1 COPY . /app RUN pnpm install --frozen-lockfile -RUN NODE_OPTIONS="--max-old-space-size=8192" pnpm run build +RUN NODE_OPTIONS="--max-old-space-size=8192" pnpm -r --workspace-concurrency=1 --filter ./apps/backend --filter ./apps/orchestrator run build # ─── Stage 2a: backend (NestJS, port 3000) ─────────────────────────── FROM node:${NODE_VERSION} AS backend @@ -49,6 +49,7 @@ WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/* \ && npm --no-update-notifier --no-fund --global install pnpm@10.6.1 COPY --from=build /app /app +RUN NODE_OPTIONS="--max-old-space-size=8192" pnpm --filter ./apps/frontend run build EXPOSE 4200 CMD ["sh", "-c", "pnpm --filter ./apps/frontend start"]