>> I strongly disagree. It's definitely not LilyPond's job to decide
>> where the TeX system stores its internal files. In other words,
>> the build infracture has to adjust this, to be handled outside of
>> LilyPond.
>
> Should this part of the font setup be baked into the Docker image?
I don't know enough about Docker images to decide that. In case the
Docker's `$HOME` directory can be easily deleted on a clean-up,
nothing needs to be changed IMHO. Otherwise it is trivial to set the
`$TEXMFVAR` environment variable to an appropriate temporary directory
before a LilyPond documentation build.
Werner