Compare commits
1 Commits
fix/ms23-p
...
fix/ms23-p
| Author | SHA1 | Date | |
|---|---|---|---|
| c0e3e39ac5 |
@@ -47,13 +47,11 @@ 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/apps/orchestrator/node_modules ./apps/orchestrator/node_modules
|
||||
|
||||
# Overwrite the symlink (apps/orchestrator/prisma/schema.prisma → ../../api/prisma/schema.prisma)
|
||||
# with the real file content. Kaniko copies symlinks AS symlinks (does not follow them),
|
||||
# so the symlink target would be dangling inside the container. Copying the actual file
|
||||
# after the orchestrator COPY overwrites the symlink with the resolved content.
|
||||
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.
|
||||
# apps/orchestrator/prisma/schema.prisma is a symlink → ../../api/prisma/schema.prisma
|
||||
# Docker COPY follows symlinks, so the schema file is already present after
|
||||
# "COPY apps/orchestrator ./apps/orchestrator" above.
|
||||
# pnpm turbo build runs prisma:generate first (which uses --schema=./prisma/schema.prisma)
|
||||
# from within the orchestrator package — no cross-package project-root issues.
|
||||
|
||||
# Build the orchestrator app using TurboRepo
|
||||
RUN pnpm turbo build --filter=@mosaic/orchestrator
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"dev": "nest start --watch",
|
||||
"lint": "eslint src/",
|
||||
"lint:fix": "eslint src/ --fix",
|
||||
"prisma:generate": "prisma generate --schema=./prisma/schema.prisma",
|
||||
"prisma:generate": "prisma generate --schema=../api/prisma/schema.prisma",
|
||||
"start": "node dist/main.js",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:dev": "nest start --watch",
|
||||
|
||||
Reference in New Issue
Block a user