diff --git a/mcp_server/Dockerfile b/mcp_server/Dockerfile index e6b84c87..bcf87c8f 100644 --- a/mcp_server/Dockerfile +++ b/mcp_server/Dockerfile @@ -10,11 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Install uv using the installer script -ADD https://astral.sh/uv/install.sh /uv-installer.sh -RUN sh /uv-installer.sh && rm /uv-installer.sh - -# Add uv to PATH -ENV PATH="/root/.local/bin:${PATH}" +RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh # Configure uv for optimal Docker usage ENV UV_COMPILE_BYTECODE=1 \ @@ -30,8 +26,7 @@ RUN groupadd -r app && useradd -r -d /app -g app app COPY pyproject.toml uv.lock ./ # Install dependencies first (better layer caching) -RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --frozen --no-dev +RUN --mount=type=cache,target=/app/.cache/uv uv sync --frozen --no-dev # Copy application code COPY graphiti_mcp_server.py ./