From 07cc1e50755386b77e8e2d2050d9bd5d6fa944ea Mon Sep 17 00:00:00 2001 From: Wayne <5291640+ringoinca@users.noreply.github.com> Date: Sun, 3 Aug 2025 01:37:20 +0300 Subject: [PATCH] Build backend then frontend --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 586db8c..3ccf7d7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,8 +19,9 @@ RUN pnpm install --shamefully-hoist --frozen-lockfile --prod=false # Copy the rest of the source code COPY . . -# Build all packages in the workspace, respecting the dependency graph -RUN pnpm --stream -r build +# Build the backend and all its dependencies, then build the frontend +RUN pnpm --filter @open-archiver/backend... --stream build +RUN pnpm --filter @open-archiver/frontend --stream build # 2. Production Stage: Install only production dependencies and copy built artifacts FROM node:22-alpine AS production