Update Dockerfile

This commit is contained in:
2025-05-07 18:41:59 +00:00
parent 5e6f15af6b
commit b7bedceb92

View File

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