- Based on
alpine:3.23.4 - Uses Tectonic for simplified and reliable LaTeX builds
- Supports PDF generation out of the box
- Popular packages pre-cached in the image — works offline after pull
- Minimal and clean console output
docker build -t latex-resume .To compile a LaTeX file (e.g., report.tex):
docker run --rm -v "$PWD:/data" latex-resume report.tex--rmcleans up the container after it runs-v "$PWD:/data"mounts the current working directory into the container- The default working directory inside the container is
/data - The default file compiled is
sample.tex
- Tectonic — a modernized LaTeX engine that fetches and caches packages automatically
- Many popular packages pre-cached at image build time (math, graphics, TikZ, tables, fonts, and more), so builds work offline once the image is pulled
You can test the setup with the included sample.tex file:
docker run --rm -v "$PWD:/data" latex-resumeThis produces sample.pdf in your current directory.