Full texlive distribution which is based on ubuntu:xenial
.
$ docker build . -t tex
$ docker run --rm -it -v $(pwd):/source tex
Mount your local source folder to the container and run it inside the container.
$ pdflatex my-document.tex
$ xelatex my-document.tex
$ pdftoppm foo.pdf bar.png -png
This is an adapted version of schickling/dockerfiles.