Skip to content

Conversation

@krokosik
Copy link
Collaborator

@krokosik krokosik commented Feb 1, 2026

Description

Closes #290
The prisma binary is 200MB large and we only need it to execute migrations. As prisma is aimed at enterprise grade deployments with CI/CD pipelines for executing migrations etc., there is no user friendly way to run migrations from a self contained app aimed at self hosted usage: prisma/prisma#28904

As such I copied and slightly tweaked the workaround from the above issue, kudos to @lr-harm !!

The image size reduction is on the order of 200 MB with Next+Prisma client remaining massive. I attempted migrating to the no-Rust Prisma client, but got some weird build errors and decided to skip it for now.

@krokosik krokosik merged commit 724de79 into main Feb 1, 2026
1 check passed
@krokosik krokosik deleted the fix-290-decouple-prisma-from-docker-image branch February 1, 2026 22:04
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.

Docker image downloads pnpm and prisma at startup

2 participants