FROM python:3.13-slim-bookworm

ENV DEBIAN_FRONTEND=noninteractive \
    PIP_NO_CACHE_DIR=1 \
    UV_SYSTEM_PYTHON=1

# OS deps (graphviz+pandoc). Use --no-install-recommends and clean the lists.
RUN apt-get update \
 && apt-get install -y --no-install-recommends graphviz pandoc ca-certificates curl git \
 && rm -rf /var/lib/apt/lists/*

# Add super-fast installer; harmless if unused in CI
RUN curl -LsSf https://astral.sh/uv/install.sh | sh

# One layer, no cache kept
RUN python -m pip install --upgrade pip \
 && pip install --no-cache-dir \
        sphinx==8.1.3 \
        sphinx-sitemap==2.6.0 \
        sphinx-design==0.6.1 \
        sphinx-autodoc-typehints==2.4.4 \
        pydata-sphinx-theme==0.16.1 \
        sphinx-rtd-theme==3.0.2 \
        nbsphinx==0.9.5 \
        nbconvert==7.16.4 \
        jinja2==3.1.6 \
        jupyter-core==5.7.2 \
        pygments==2.19.1 \
	IPython==9.4.0

WORKDIR /work
