FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
RUN apt-get update \
    && apt-get install -y --no-install-recommends curl ca-certificates \
    && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/agent
RUN pip install --no-cache-dir \
    "langgraph>=0.2.0" \
    "langchain-core>=0.3.0" \
    "langchain-openai>=0.2.0" \
    "litellm>=1.50.0" \
    "mcp[cli]>=1.2.0" \
    "psycopg[binary]>=3.2.0" \
    "langgraph-checkpoint-postgres>=2.0.0"
COPY README.agent.txt /opt/agent/README.agent.txt
