Prisma 7 Docker Migrations

Run Prisma 7 migrations inside a multi-stage Docker production image. Use when: (1) `prisma migrate deploy` crashes with "Cannot resolve environment variable: DATABASE_URL" or "cannot find module" at container startup, (2) building a production Docker image that needs to run migrations before starting the server, (3) you copied only node_modules/prisma + node_modules/@prisma but the Prisma 7 CLI still fails with MODULE_NOT_FOUND at runtime, (4) Yarn 4 node-modules linker .bin/prisma symlink breaks after Docker COPY. Covers prisma.config.ts (Prisma 7), full node_modules copy requirement, and symlink recreation pattern.

yorch 5a886e9 2 files · 8.3 KB Updated

File contents

yorch/claude-skills/tree/main/skills/prisma-7-docker-migrations commit 5a886e9f64

Frequently asked questions

npx skillmds add yorch/prisma-7-docker-migrations