# Use the official Python slim image
FROM python:3.11-slim

# Set working directory inside the container
WORKDIR /app

# Copy pyproject.toml and README first (for caching layers)
COPY pyproject.toml README.md ./

# Copy the source code
COPY src/ ./src/

# Install the package and its dependencies
RUN pip install --no-cache-dir .

# Run the MCP server on startup
ENTRYPOINT ["meridian-mcp"]
