mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
🔧 fix(docker): add missing shared packages to all backend Dockerfiles
All backend Dockerfiles were missing required shared package dependencies, causing CI builds to fail with TypeScript compilation errors. Fixed Dockerfiles: - chat: added credit-operations, nestjs-integration, health, metrics, setup, tsconfig - todo: added credit-operations, nestjs-integration, health, metrics, tsconfig - contacts: added health, metrics, setup, tsconfig - calendar: added credit-operations, nestjs-integration, health, metrics, setup, tsconfig - presi: added health, setup, tsconfig - picture: added credit-operations, nestjs-integration, health, storage, tsconfig - clock: added health, metrics, setup, tsconfig - storage: added health, tsconfig - manadeck: added credit-operations, tsconfig - skilltree: added health, metrics, tsconfig Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
21d50d1e0b
commit
e7e6281d54
10 changed files with 171 additions and 31 deletions
|
|
@ -11,10 +11,16 @@ COPY pnpm-workspace.yaml ./
|
|||
COPY package.json ./
|
||||
COPY pnpm-lock.yaml ./
|
||||
|
||||
# Copy shared packages
|
||||
# Copy shared packages (all required dependencies)
|
||||
COPY packages/credit-operations ./packages/credit-operations
|
||||
COPY packages/mana-core-nestjs-integration ./packages/mana-core-nestjs-integration
|
||||
COPY packages/shared-errors ./packages/shared-errors
|
||||
COPY packages/shared-nestjs-auth ./packages/shared-nestjs-auth
|
||||
COPY packages/shared-nestjs-health ./packages/shared-nestjs-health
|
||||
COPY packages/shared-nestjs-metrics ./packages/shared-nestjs-metrics
|
||||
COPY packages/shared-nestjs-setup ./packages/shared-nestjs-setup
|
||||
COPY packages/shared-storage ./packages/shared-storage
|
||||
COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
||||
|
||||
# Copy chat backend
|
||||
COPY apps/chat/apps/backend ./apps/chat/apps/backend
|
||||
|
|
@ -22,16 +28,31 @@ COPY apps/chat/apps/backend ./apps/chat/apps/backend
|
|||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Build shared packages first
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/shared-nestjs-auth
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/shared-nestjs-health
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/shared-nestjs-metrics
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/shared-nestjs-setup
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/shared-storage
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/credit-operations
|
||||
RUN pnpm build
|
||||
|
||||
WORKDIR /app/packages/mana-core-nestjs-integration
|
||||
RUN pnpm build
|
||||
|
||||
# Build the backend
|
||||
WORKDIR /app/apps/chat/apps/backend
|
||||
RUN pnpm build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue