fix(orchestrator): rm symlink before schema COPY in Docker builder #710

Merged
jason.woltje merged 1 commits from fix/ms23-prisma-rm-symlink into main 2026-03-07 17:00:39 +00:00
Owner

Kaniko resolves destination symlinks during COPY — writing to the symlink path tried to follow it to /app/apps/api (missing). RUN rm -f clears the symlink first so COPY writes the real file.

Kaniko resolves destination symlinks during COPY — writing to the symlink path tried to follow it to /app/apps/api (missing). RUN rm -f clears the symlink first so COPY writes the real file.
jason.woltje added 1 commit 2026-03-07 17:00:36 +00:00
fix(orchestrator): rm dangling symlink before COPY in Docker builder
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
945f4ba12a
Kaniko resolves destination symlinks during COPY. Writing to
apps/orchestrator/prisma/schema.prisma (a symlink → ../../api/prisma/schema.prisma)
causes kaniko to try to resolve /app/apps/api which does not exist → build fails.

Fix: RUN rm -f the symlink first so the destination path is clean,
then COPY the real schema file to that location.

CI is unaffected (symlink resolves correctly in the monorepo checkout).
jason.woltje merged commit fa7837af3e into main 2026-03-07 17:00:39 +00:00
Sign in to join this conversation.