Skip to content

fix: skip postinstall in worker Dockerfile to avoid premature prisma generate#7

Merged
rcasto123 merged 1 commit into
mainfrom
fix/worker-dockerfile-npm-ci
Apr 21, 2026
Merged

fix: skip postinstall in worker Dockerfile to avoid premature prisma generate#7
rcasto123 merged 1 commit into
mainfrom
fix/worker-dockerfile-npm-ci

Conversation

@rcasto123

Copy link
Copy Markdown
Owner

Summary

  • npm ci triggers the postinstall hook which runs prisma generate, but prisma/schema.prisma hasn't been copied yet at that point
  • Fix: use --ignore-scripts flag so the postinstall hook is skipped during npm ci, then npx prisma generate runs explicitly after the COPY prisma ./prisma step

Test plan

  • Railway worker service builds successfully using Dockerfile.worker
  • Worker service comes online

🤖 Generated with Claude Code

…a generate

npm ci triggers postinstall which runs prisma generate before
prisma/schema.prisma is copied. Use --ignore-scripts and let the
subsequent RUN npx prisma generate handle it after the copy step.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rcasto123 rcasto123 merged commit f4d9cb2 into main Apr 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant