# Generated by Molina-Optiplex for MCP Deployment
FROM python:3.10-slim-bullseye

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Install dependencies via pip
COPY pyproject.toml .
# Create a dummy README if needed or copy existing
COPY README.md .
# Install standard dependencies + build tool
RUN pip install hatchling httpx uvicorn starlette mcp

# Copy source code
COPY mcp_server.py .

# Environment variables
ENV PYTHONUNBUFFERED=1

# Run the server
# Note: For Smithery/Glama hosting, they might override this, but this is a safe default.
CMD ["python", "mcp_server.py"]