Merge 83f00bd207 into 6b62c75f03
This commit is contained in:
commit
cf081861db
1 changed files with 2 additions and 7 deletions
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue