chore(api): update Dockerfile for production runtime optimizations#2194
chore(api): update Dockerfile for production runtime optimizations#2194
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Removes the global Prisma CLI install and instead runs Written by Cursor Bugbot for commit 1bc1269. This will update automatically on new commits. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| prisma generate --schema=./prisma/schema.prisma | ||
| # Rebuild native modules for this exact Node.js version and regenerate Prisma client | ||
| RUN npm rebuild && \ | ||
| npx prisma generate --schema=./prisma/schema.prisma |
There was a problem hiding this comment.
npm rebuild may fail without build tools
Medium Severity
npm rebuild can trigger native addon compilation via node-gyp, which needs Python, make, and g++/gcc. node:20-slim does not include build-essential or Python, so the Docker build may fail if any dependency (e.g. esbuild, playwright-core, or their transitive deps) requires compilation instead of prebuilt binaries.
Additional Locations (1)
|
🎉 This PR is included in version 1.86.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |


What does this PR do?
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
Video Demo (if applicable):
Image Demo (if applicable):
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist