feat: optimize prisma binary targets and transition docker base to no…#256
Merged
dDevAhmed merged 5 commits intoMay 30, 2026
Merged
Conversation
Contributor
Author
|
@dDevAhmed Hi maintainers, I've refactored the multi-stage Docker build layers and locked down the specific Prisma engine binary targets to Alpine targets as requested. Whenever you have a free moment, could you please approve the CI workflow runner so the integration builds, lints, and test suites can execute? Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…de:alpine
closes #192
Submission Description
Updated Docker and Prisma build configuration to reduce Prisma binary footprint in Docker and enforce Alpine-compatible engine targets.
What changed
node:20-alpinebuildnpm prune --productionin builder stage to remove dev dependencies from final imagebinaryTargets = ["native", "linux-musl"]engines.node = ">=20 <21"to package.jsonWhy
Verification
npm install --ignore-engines --no-audit --no-fund1 passed, 5 passed, 5 totalSummary
This change addresses the Prisma binary size issue in Docker by optimizing the container build and restricting Prisma engines to Alpine-compatible output, while adding test coverage to prevent regressions.