Repository navigation
chore(docker): install only the serving deps into the MCP image - #116
Merged
Merged
Conversation
Prefect, PyMuPDF, pytesseract, python-docx, bs4, Pillow and langchain-community move to a `pipeline` dependency group, and ruff and datamodel-code-generator to `dev`. Dockerfile.mcp syncs with --no-default-groups, Dockerfile.prefect adds --group pipeline, and default-groups keeps a plain `uv sync` installing everything for local work and CI. langchain stays in [project]: nothing in src/mcp_server imports it, but langfuse.langchain.CallbackHandler refuses to load without it. fastmcp is pinned below 3, as its startup banner asks. No locked version changes. Locally the MCP image goes from 1.19 GB to 797 MB, the Prefect image from 1.32 GB to 1.26 GB. Refs #98
Keeps .venv, .env, .history/ (editor snapshots of .env), dumps/, staging/ and host __pycache__ out of the build context. The Dockerfiles COPY named paths only, so none of this reached an image, but the legacy builder sent 1.04 GB to the daemon on every build (now 1.5 MB), and the host's .pyc files under src/ were copied into the MCP image. Refs #98
Irahan2
requested review from
Dominik-Galus,
jgilewicz and
omakszewska
and removed request for
jgilewicz and
omakszewska
September 28, 2026 06:54
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.
The MCP image was installing the whole lockfile, Prefect and PyMuPDF included. The pipeline libraries are now a
pipelinedependency group and ruff/datamodel-code-generator aredev, so Dockerfile.mcp syncs with --no-default-groups and Dockerfile.prefect adds --group pipeline. A plainuv syncstill installs everything, so local and CI don't change. langchain had to stay in the main deps since langfuse.langchain imports it. Locally the MCP image went from 1.19 GB to 797 MB and the new one passes /health against a fresh Neo4j. Also pinned fastmcp <3 and added a .dockerignoreFixes #98