Docker deployment: build all packages in one

This commit is contained in:
Wayne
2025-08-03 00:37:52 +03:00
parent a5d3a3be86
commit 227e8d8d18
3 changed files with 8 additions and 7 deletions

View File

@@ -19,11 +19,8 @@ RUN pnpm install --frozen-lockfile --prod=false
# Copy the rest of the source code
COPY . .
# We need to build the types package first because other packages depend on it
RUN pnpm --filter @open-archiver/types build
# Build all other packages
RUN pnpm --filter=!@open-archiver/types build
# Build all packages.
RUN pnpm build
# 2. Production Stage: Install only production dependencies and copy built artifacts
FROM node:22-alpine AS production