This Docker image provides a lightweight environment for compiling LaTeX documents using latexmk, which handles multiple compilation passes, bibliographies, and error recovery automatically.
- Based on
debian:bullseye-slim
- Uses
latexmk
for simplified and reliable LaTeX builds - Supports PDF generation out of the box
- 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 sample.tex
--rm
cleans 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
If you're compiling a file with a different name:
docker run --rm -v "$PWD:/data" latex-resume my_report.tex
- latexmk
- biber
TeX Live packages for:
- pdflatex
- Bibliographies
- Fonts
- Math
- Graphics
- Language support
You can test the setup with a simple sample.tex
file in the same directory.