# Dockerfile.agent — Gradio + LangGraph agent backend FROM python:3.11-slim WORKDIR /app # Install system deps for pdfplumber RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt \ gradio>=5.0 langgraph>=0.2 langchain-core>=0.3 \ langchain-openai>=0.3 langgraph-checkpoint-postgres pdfplumber # Gradio server ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 CMD ["python", "-m", "backend.src.agent.run"]