Repository navigation
refactor: slim Docker image — remove bundled model, lazy download on first run - #571
Merged
Merged
Conversation
…first run Remove embedding model (~208MB) from Docker image build to reduce image size from ~218MB to ~10MB. Model downloads automatically on first container start via entrypoint.sh and persists in the named volume (uteke-data). Changes: - Dockerfile: remove COPY models/ step - release.yml: remove Download embedding model CI step - docker-entrypoint.sh: update comment (CI -> volume) - README.md: update docker quick-start comment - docs/docker.md: update description to reflect slim image Impact: - Docker image: ~218MB -> ~10MB (95% reduction) - First run: ~208MB one-time download to volume - Subsequent image updates: instant (no model re-download) - docker-compose.yml volume mount unchanged Relates: #97 (original Dockerfile with baked-in model)
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-cli · BYOK · MIT |
Non-critical workflow — project board sync failures should not create red X noise in Actions. Root cause: issues closed by PR merge without being on the board first; addProjectV2ItemById returns unexpected response format.
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…del-bundle refactor: slim Docker image — remove bundled model, lazy download on first run
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.
Summary
Remove embedding model (~208MB) from Docker image build to reduce image size from ~218MB to ~10MB.
Changes
COPY models/stepHow it works
docker-entrypoint.shuteke-data:/dataImpact
Verification
docker-entrypoint.shlazy download + SHA256 verify already worksdocker-compose.ymlvolume mountuteke-data:/datapersists modelengine.rsconditional download handles bare metal