From b7bedceb92d140eb9ef12812ef90cb04382ad6f7 Mon Sep 17 00:00:00 2001 From: jandres Date: Wed, 7 May 2025 18:41:59 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 23f6247..617d5d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,21 +4,21 @@ FROM python:3.10-slim # Set working directory WORKDIR /app -# Install build dependencies, curl for healthcheck +# Install build dependencies, curl for healthcheck, and uv RUN apt-get update && \ apt-get install -y --no-install-recommends \ gcc \ python3-dev \ curl \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && pip install --no-cache-dir uv -# Copy project files -COPY splunk_mcp.py ./ -COPY README.md ./ -COPY .env.example ./ +# Copy ALL project files (including the mcp module) +COPY . . -# Install required dependencies directly -RUN pip install --no-cache-dir fastapi uvicorn python-dotenv pydantic splunk-sdk python-decouple +# Install dependencies using uv +RUN uv pip install --system poetry && \ + uv pip install --system -e . # Create directory for environment file RUN mkdir -p /app/config