mirror of
https://github.com/LogicLabs-OU/OpenArchiver.git
synced 2026-04-06 00:31:57 +02:00
Docker deployment: build all packages in one
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -8,5 +8,6 @@
|
||||
"experimentalDecorators": true
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"references": [{ "path": "../types" }]
|
||||
}
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true
|
||||
"isolatedModules": true,
|
||||
"paths": {
|
||||
"@open-archiver/types": ["./packages/types/src/index.ts"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user