This commit is contained in:
Mask 2025-10-16 16:20:08 +08:00 committed by GitHub
commit cf081861db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ./