Dockerfile for LaTeX with blang/latex
as baseimage.
docker pull sdelrio/latex
docker build -t sdelrio/latex:latest .
Output will be written on build
subdirectoroy.
docker run --rm -v `pwd`:/latex sdelrio/latex make_latex mydocument.tex
docker run --rm -v `pwd`:/latex sdelrio/latex make_xelatex mydocument.tex
After building pdf if the result has no errors it will delete log, but to force cleanup do
docker run --rm -v `pwd`:/latex sdelrio/latex clean