From 60742dca760fc4822117d7ca838635dfa5ae89c0 Mon Sep 17 00:00:00 2001 From: Daniel Chalef <131175+danielchalef@users.noreply.github.com> Date: Thu, 30 Oct 2025 08:08:44 -0700 Subject: [PATCH] conductor-checkpoint-msg_01CYzyiAtLo95iVLeqWSuYiR --- mcp_server/docker/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mcp_server/docker/Dockerfile b/mcp_server/docker/Dockerfile index e5845847..c044cc32 100644 --- a/mcp_server/docker/Dockerfile +++ b/mcp_server/docker/Dockerfile @@ -26,16 +26,18 @@ ENV UV_COMPILE_BYTECODE=1 \ # Create non-root user RUN groupadd -r app && useradd -r -d /app -g app app -# Accept graphiti-core version as build argument -ARG GRAPHITI_CORE_VERSION +# Accept graphiti-core version as build argument (defaults to latest compatible version) +ARG GRAPHITI_CORE_VERSION=0.22.0 # Copy project files for dependency installation (better caching) COPY pyproject.toml uv.lock ./ -# Remove the local path override and version constraint for graphiti-core in Docker builds -# This allows us to pin to a specific version passed as a build arg +# Remove the local path override for graphiti-core in Docker builds +# Pin to specific version if GRAPHITI_CORE_VERSION is provided, otherwise use >=0.16.0 RUN sed -i '/\[tool\.uv\.sources\]/,/graphiti-core/d' pyproject.toml && \ - sed -i 's/graphiti-core\[kuzu,falkordb\]>=0\.16\.0/graphiti-core[kuzu,falkordb]==${GRAPHITI_CORE_VERSION}/' pyproject.toml + if [ -n "${GRAPHITI_CORE_VERSION}" ]; then \ + sed -i "s/graphiti-core\[kuzu,falkordb\]>=0\.16\.0/graphiti-core[kuzu,falkordb]==${GRAPHITI_CORE_VERSION}/" pyproject.toml; \ + fi # Install dependencies with explicit graphiti-core version RUN --mount=type=cache,target=/root/.cache/uv \