I'm building a script for a CI to get a docker image with minimal distribution of Texlive possible, I specifically want to avoid pulling 5 Gb of texlive-full
everytime I need this docker image.
Right now I see this script as
- install
texlive-something
tlmgr install latexmk
tlmgr install texliveonfly
texliveonfly -c latexmk -a "-pdf -f -synctex=0" myFile.tex
(install missing tex packages and compile withlatexmk
)- deploy results and cache the tex-related part of the image.
Which package should I chose for texlive-something
so that these steps work? Thanks in advance.
edit
It seems that the word minimal can lead to some confusion. In this case it means (for a package)
-
Has a set of binaries (
pdflatex
,tlmgr
,bibtex
/biber
,perl
, I might be missing something) that would allow me to compile an empty document. Should I need some other binaries, I'm ok with adding this dependencies by hand -
Contains a minimal set of LaTeX packages so that an empty document would compile. If I understand correctly, most other packages will be handled by
texliveonfly
(barring some esoteric cases, of course, but that can be handled manually, too).
In other words, minimal in terms of total disk space under the hypothesis that an empty document compiles using the instruments I mentioned.
Best Answer
Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:
basic
scheme