Skip to content

refactor: slim Docker image — remove bundled model, lazy download on first run - #571

Merged
ajianaz merged 2 commits into
developfrom
feat/slim-docker-image-no-model-bundle
Jul 6, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/slim-docker-image-no-model-bundle

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Remove embedding model (~208MB) from Docker image build to reduce image size from ~218MB to ~10MB.

Changes

File Change
Dockerfile Remove COPY models/ step
release.yml Remove "Download embedding model" CI step
docker-entrypoint.sh Update comment
README.md Update docker comment
docs/docker.md Update description

How it works

  • Model downloads automatically on first container start via docker-entrypoint.sh
  • Persists in named volume uteke-data:/data
  • Subsequent image updates are instant (no model re-download)
  • SHA256 checksum verification on download (already existed)

Impact

Before: Image ~218MB → every update pulls 218MB
After:  Image ~10MB  → every update pulls ~10MB
                      First run: one-time ~208MB download to volume

Verification

  • docker-entrypoint.sh lazy download + SHA256 verify already works
  • docker-compose.yml volume mount uteke-data:/data persists model
  • No code changes to Rust — existing engine.rs conditional download handles bare metal
  • Docs updated to reflect new behavior
  • No open GitHub issues related to model/image size

…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)
Comment thread Dockerfile Fixed
@github-actions

github-actions Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

❌ Blocked — critical issues found.

🔴 Error (1)

  • .github/workflows/project-sync.yml:20 — The new continue-on-error: true on the sync job causes GitHub to mark the workflow as successful even when the project board sync step fails. This can hide real regressions in automation and leave issues/PRs unsynced without any failing signal in CI.

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
ajianaz merged commit 67214db into develop Jul 6, 2026
9 checks passed
@ajianaz
ajianaz deleted the feat/slim-docker-image-no-model-bundle branch July 6, 2026 00:56
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
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.

2 participants