Building PDF documents via Sphinx depends of LaTeX being available, this resulted in quite heavy container images which took also very long to build. Out of curiosity I tested to build a minimal Texlive environment based on Nix and got surprisingly nice results, both the image size and the build time dropped significantly.
more ...