This container helps compiling latex sources without the need to install all latex packages on your system.
Check out my blog post.
First, add your local user to docker group:
sudo usermod -aG docker YOURUSERNAMEPull image (from Hub):
docker pull blang/latexor build:
docker build -t blang/latex .
cd example
# Double to process refs
../dockercmd.sh pdflatex example.tex
../dockercmd.sh pdflatex example.tex
# Or better in one go (does not start container twice)
../dockercmd.sh /bin/sh -c "pdflatex example.tex && pdflatex example.tex"
# View
./example.pdfUse dockercmd.sh to execute any command you like inside the container. WORKDIRs match, mounted to /data inside container.
sudo make example.pdf
sudo make -e DOCUMENT=anotherExample
- Easy setup
- Preserves UID and GID of local user
- Use container like local command
texlive-fullcovers most of the available packages