diff --git a/docker/Dockerfile b/docker/Dockerfile index 5c60437..3e8373d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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