Files
0ec248a91b build(docker): slim the image to 308 MB; SeekDB/Milvus/Valkey as optional extras and image variants (LANG-422) (#2996)
* build(docker): cut the image from 2.25 GB to 1.28 GB (LANG-422)

- Build the Python venv in a separate stage with --no-dev and no uv cache,
  so gcc/libc6-dev, moto/pytest/coverage and the uv cache stay out of the
  final image.
- Move mypy, ruff and pre-commit from runtime dependencies to the dev group.
- Replace Debian's ffmpeg (~200 packages, ~400 MB incl. Mesa/LLVM) with an
  audio-only ffmpeg 7.1.5 cross-compiled from the signed release tarball
  (opus, mp3lame, opencore-amr). This also adds the libopencore_amrnb
  encoder that Debian's build lacks, so AMR output now works.
- Copy node/npm from the official node:22 image instead of NodeSource, which
  pulled in python3.13 and 65 MB of headers.
- Exclude docs, tests, dev-docs, tools, skills and examples from the context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* build(docker): publish SeekDB as a separate -seekdb image variant (LANG-422)

- The default image no longer installs the optional seekdb extra, nor
  ChromaDB's ONNX MiniLM / Kubernetes client stack (onnxruntime, sympy,
  kubernetes, ...). LangBot always passes its own embeddings to Chroma
  and only uses the embedded PersistentClient, so they are never used.
- New `langbot-seekdb` build target: the default image plus one layer
  with the seekdb extra. Releases push rockchin/langbot:<tag>-seekdb,
  latest-seekdb and beta-seekdb next to the plain tags.
- Docs (zh/en/ja): Docker, Kubernetes, settings and embedding model pages
  point SeekDB users to the -seekdb tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* build(deps): make Milvus and Valkey Search optional extras like SeekDB (LANG-422)

- pyproject: pymilvus moves to a `milvus` extra and valkey-glide to a
  `valkey` extra; drop the unused direct pandas dependency (only pymilvus
  needs it). Core imports pymilvus lazily and raises an install hint,
  matching the SeekDB and Valkey Search backends.
- Dockerfile: replace the langbot-seekdb target with a generic
  `langbot-extra` target (`--build-arg LANGBOT_EXTRA=seekdb|milvus|valkey`),
  one layer on top of the default image.
- Release workflow publishes <tag>, <tag>-seekdb, <tag>-milvus and
  <tag>-valkey (plus latest-*/beta-*); the tag test now checks every build.
- fnOS packages keep installing all three extras, as before.
- Docs (zh/en/ja): Docker, Kubernetes, settings, source and package
  install pages describe the extras and image tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 13:01:45 +08:00
..
2026-05-16 12:05:54 +08:00