Conversation
The Prisma query engine binaries were being cached in /root/.cache/ during the build, but the app runs as appuser who cannot access that directory. This caused a Permission denied error at runtime. Fix by: - Creating appuser earlier in the Dockerfile - Setting PRISMA_BINARY_CACHE_DIR to /home/appuser/.cache/prisma-python - Ensuring ownership of the cache directory is granted to appuser
WalkthroughThe Dockerfile is refactored to establish non-root user and group (appuser/appgroup with UID/GID 1000) early in the build process. A Prisma binary cache directory environment variable is introduced, and user creation is consolidated with unified ownership adjustments across the application directory, cache directory, and Prisma site-packages binaries. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2026-01-02T20:46:00.330ZApplied to files:
🔇 Additional comments (3)
Comment |
The Prisma query engine binaries were being cached in /root/.cache/ during the build, but the app runs as appuser who cannot access that directory. This caused a Permission denied error at runtime.
Fix by:
Summary by CodeRabbit
Release Notes
This release contains infrastructure and containerization improvements with no end-user visible changes.
✏️ Tip: You can customize this high-level summary in your review settings.