Compiling TeX in Docker
2026-06-24First pull the texlive container:
podman pull registry.gitlab.com/islandoftex/images/texlive:latestThen build using the appropriate latexmk command:
podman run -i --rm --name latex -v "$PWD":/usr/src/app -w /usr/src/app texlive:latest latexmk -pdf -bibtex -synctex=1 main.texSources
See https://gitlab.com/islandoftex/images/texlive/-/wikis/Building-LaTeX-documents-locally-using-Docker
See also https://gitlab.com/islandoftex/images/texlive/-/wikis/Compiling-LaTeX-documents-with-GitLab-CI