FROM python:3.13-alpine
WORKDIR /app
# Install build dependencies needed for some Python packages
RUN apk add --no-cache git gcc musl-dev python3-dev libffi-dev openssl-dev
# Copy pyproject.toml and README first to leverage Docker cache
COPY pyproject.toml README.md ./
# Copy source code
COPY src/ src/
# Install the package with pip
# Note: FastMCP requires mcp as a dependency, which brings in web frameworks
# This is why the build installs many packages like uvicorn, starlette, pyperclip etc.
RUN pip install --no-cache-dir .
# Default environment variables (will be overridden at runtime)
ENV MCP_SERVER_NAME="pararam-nexus-mcp"
ENV MCP_DEBUG="false"
# Run the MCP server in stdio mode for Claude integration by default
ENTRYPOINT ["python", "-m", "pararam_nexus_mcp.server"]