Skip to content

fly: Enhance Dockerfile with local embeddings installation#923

Open
imcvampire wants to merge 1 commit into
rohitg00:mainfrom
imcvampire:patch-1
Open

fly: Enhance Dockerfile with local embeddings installation#923
imcvampire wants to merge 1 commit into
rohitg00:mainfrom
imcvampire:patch-1

Conversation

@imcvampire

@imcvampire imcvampire commented Jun 13, 2026

Copy link
Copy Markdown

Added installation of optional peer dependency for local embeddings and preloaded model weights during Docker build.

Summary by CodeRabbit

  • Chores
    • Improved deployment efficiency by pre-caching model weights during the build process, reducing runtime dependencies.

Added installation of optional peer dependency for local embeddings and preloaded model weights during Docker build.
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

@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.

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Docker build now includes a step to install @xenova/transformers and pre-cache the Xenova/all-MiniLM-L6-v2 embedding model at image build time. This eliminates runtime downloads of model weights and avoids requiring a build-cache volume.

Changes

Embedding Model Preload

Layer / File(s) Summary
Build-time embedding model initialization
deploy/fly/Dockerfile
Docker RUN instruction installs @xenova/transformers npm package and executes a Node script that loads the feature-extraction pipeline with Xenova/all-MiniLM-L6-v2, causing model weights to be fetched and cached during image build rather than at runtime.

🎯 2 (Simple) | ⏱️ ~8 minutes

🐰 A Dockerfile so neat,
With embeddings cached, oh what a treat!
No runtime waits, no HuggingFace calls,
The model sits ready within Docker's walls.
binkbink

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fly: Enhance Dockerfile with local embeddings installation' clearly and accurately summarizes the main change: adding embeddings installation to the Dockerfile.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 326850d1-74fe-43ac-b376-3e0590163032

📥 Commits

Reviewing files that changed from the base of the PR and between f6f9e3c and cc61211.

📒 Files selected for processing (1)
  • deploy/fly/Dockerfile

Comment thread deploy/fly/Dockerfile
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.

1 participant