Docker build types package

This commit is contained in:
Wayne
2025-08-03 00:23:57 +03:00
parent ed15c0e9bd
commit 8695f484ac

View File

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