fix(orchestrator): copy schema to overwrite dangling symlink in Docker #709

Merged
jason.woltje merged 1 commits from fix/ms23-prisma-kaniko-symlink into main 2026-03-07 16:45:55 +00:00
Owner

Kaniko does not follow symlinks on COPY — it copies symlinks as-is. The symlink target (../../api/prisma/schema.prisma) is dangling inside the container. Explicitly copy the real file after the orchestrator COPY to overwrite the symlink with actual content.

Kaniko does not follow symlinks on COPY — it copies symlinks as-is. The symlink target (../../api/prisma/schema.prisma) is dangling inside the container. Explicitly copy the real file after the orchestrator COPY to overwrite the symlink with actual content.
jason.woltje added 1 commit 2026-03-07 16:45:52 +00:00
fix(orchestrator): copy schema file after COPY to overwrite dangling symlink
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
0271ec1e49
Kaniko does NOT follow symlinks — it copies them as-is. The symlink
apps/orchestrator/prisma/schema.prisma → ../../api/prisma/schema.prisma
becomes dangling inside the container since apps/api/ is not present.

Fix: explicitly copy apps/api/prisma/schema.prisma to
apps/orchestrator/prisma/schema.prisma AFTER the COPY apps/orchestrator
step. This overwrites the symlink with the actual file content.

CI still works via the symlink (full monorepo checkout resolves it).
Docker now has the real file at the expected path.
jason.woltje merged commit 123cbce5cd into main 2026-03-07 16:45:55 +00:00
Sign in to join this conversation.