- Move docling-agent + mellea out of requirements.txt into a dedicated requirements-reasoning.txt. They are no longer pulled into latest-remote (regression fix) nor into latest-local by default. - Dockerfile: split into builder-remote / builder-local / runtime-base stages. The runtime image carries no pip and no build cache; the source is COPYed only in the final stages so a code-only change reuses every pip-install layer. - Add WITH_REASONING build-arg (default false) on the local target. Set to true to bundle the R&D reasoning-trace deps for a local-reasoning image. - Harden .dockerignore: tests/, data/, uploads/, IDE files, stray node_modules / package-lock.json, the one-shot migrate_06.py utility. - Set HF_HOME so the Docling/HF model cache lands in a deterministic appuser-owned path that compose can mount as a volume.
11 lines
508 B
Text
11 lines
508 B
Text
# R&D reasoning-trace live runner — calls docling-agent's `_rag_loop` over
|
|
# an Ollama backend. Gated server-side by `REASONING_ENABLED`; pulls a
|
|
# heavy transitive set (mellea + pydantic-ai + several LLM SDKs).
|
|
#
|
|
# Opt in at build time with `--build-arg WITH_REASONING=true` on the
|
|
# `local` Dockerfile target. Default off keeps the standard image lean.
|
|
#
|
|
# See https://github.com/docling-project/docling-agent/issues/26 for the
|
|
# public-API replacement of `_rag_loop`.
|
|
docling-agent==0.1.0
|
|
mellea==0.4.2
|