PNPM workspace build order

This commit is contained in:
Wayne
2025-08-03 01:44:00 +03:00
parent 07cc1e5075
commit 26aeaa7c2d
3 changed files with 5 additions and 7 deletions

View File

@@ -19,9 +19,10 @@ RUN pnpm install --shamefully-hoist --frozen-lockfile --prod=false
# Copy the rest of the source code
COPY . .
# 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
# Build packages in order.
RUN pnpm --filter @open-archiver/types build
RUN pnpm --filter @open-archiver/backend build
RUN pnpm --filter @open-archiver/frontend build
# 2. Production Stage: Install only production dependencies and copy built artifacts
FROM node:22-alpine AS production