Compare commits
2 Commits
fix/ms23-p
...
fix/ms23-p
| Author | SHA1 | Date | |
|---|---|---|---|
| 945f4ba12a | |||
| 123cbce5cd |
@@ -47,11 +47,14 @@ COPY --from=deps /app/packages/shared/node_modules ./packages/shared/node_module
|
|||||||
COPY --from=deps /app/packages/config/node_modules ./packages/config/node_modules
|
COPY --from=deps /app/packages/config/node_modules ./packages/config/node_modules
|
||||||
COPY --from=deps /app/apps/orchestrator/node_modules ./apps/orchestrator/node_modules
|
COPY --from=deps /app/apps/orchestrator/node_modules ./apps/orchestrator/node_modules
|
||||||
|
|
||||||
# apps/orchestrator/prisma/schema.prisma is a symlink → ../../api/prisma/schema.prisma
|
# The repo has apps/orchestrator/prisma/schema.prisma as a symlink for CI use.
|
||||||
# Docker COPY follows symlinks, so the schema file is already present after
|
# Kaniko resolves destination symlinks on COPY, which fails because the symlink
|
||||||
# "COPY apps/orchestrator ./apps/orchestrator" above.
|
# target (../../api/prisma/schema.prisma) doesn't exist in the container.
|
||||||
# pnpm turbo build runs prisma:generate first (which uses --schema=./prisma/schema.prisma)
|
# Fix: remove the dangling symlink first, then copy the real schema file there.
|
||||||
# from within the orchestrator package — no cross-package project-root issues.
|
RUN rm -f apps/orchestrator/prisma/schema.prisma
|
||||||
|
COPY apps/api/prisma/schema.prisma ./apps/orchestrator/prisma/schema.prisma
|
||||||
|
# pnpm turbo build runs prisma:generate (--schema=./prisma/schema.prisma) from the
|
||||||
|
# orchestrator package context — no cross-package project-root issues.
|
||||||
|
|
||||||
# Build the orchestrator app using TurboRepo
|
# Build the orchestrator app using TurboRepo
|
||||||
RUN pnpm turbo build --filter=@mosaic/orchestrator
|
RUN pnpm turbo build --filter=@mosaic/orchestrator
|
||||||
|
|||||||
Reference in New Issue
Block a user