# Image the reviewed agent code runs in. Edit the package list and the next run of
# agents.py rebuilds it automatically (the image tag is a hash of this file).
FROM python:3.12-slim

RUN pip install --no-cache-dir \
        numpy \
        pandas \
        scipy \
        scikit-learn \
        pdfplumber \
        matplotlib \
        openpyxl

# The container's file system is read-only except /tmp and the workspace,
# so point library caches at /tmp and make matplotlib save to files, not windows.
ENV MPLBACKEND=Agg \
    MPLCONFIGDIR=/tmp/matplotlib \
    XDG_CACHE_HOME=/tmp/cache
