Docker image for building latex documents
You should add your current user to docker group.
sudo usermod -aG docker username
It will use user and group id to compile latex documents
Download latexdockercmd.sh
script to your latex project directory
wget https://raw.githubusercontent.com/dovydasvenckus/alpine-latex/master/latexdockercmd.sh
Make it executable
chmod +x latexdockercmd.sh
Execute desired latex command with your source
./latexdockercmd.sh pdflatex document.tex
This project is based on latex-docker project which is licensed under MIT license.