FROM gekkofs/deps:0.9.5

LABEL Description="Debian-based environment suitable to build GekkoFS' documentation"

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    # install dependencies for Doxygen
    python3 \
    flex \
    bison \
    graphviz doxygen && \
    # install sphinx, breathe and exhale
    pip3 install --break-system-packages \
    'sphinx' \
    sphinx_rtd_theme \
    'breathe' \
    'exhale' \
    'sphinx-copybutton' \
    'sphinx-multiversion' \
    'myst_parser'  \
    attrs && \
    # Clean apt cache to reduce image layer size
    rm -rf /var/lib/apt/lists/* && \
    # Clean apt caches of packages
    apt-get clean && apt-get autoclean
