fly: Enhance Dockerfile with local embeddings installation#923
fly: Enhance Dockerfile with local embeddings installation#923imcvampire wants to merge 1 commit into
Conversation
Added installation of optional peer dependency for local embeddings and preloaded model weights during Docker build.
|
@imcvampire is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughDocker build now includes a step to install ChangesEmbedding Model Preload
🎯 2 (Simple) | ⏱️ ~8 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@deploy/fly/Dockerfile`:
- Around line 32-33: The Dockerfile RUN that installs `@xenova/transformers` and
pre-caches the model should pin the package to a deterministic version to avoid
build drift; change the install invocation to install
`@xenova/transformers`@2.17.2 (matching package.json's ^2.17.2) instead of the
unversioned package name and rebuild the image so the node -e
pipeline('feature-extraction','Xenova/all-MiniLM-L6-v2') cache is deterministic.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Added installation of optional peer dependency for local embeddings and preloaded model weights during Docker build.
Summary by CodeRabbit