Skip to content

joshfinnie/latex-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX Docker

Build Docker Image

Features

  • 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

Build the Image

docker build -t latex-resume .

Usage

To compile a LaTeX file (e.g., report.tex):

docker run --rm -v "$PWD:/data" latex-resume report.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
  • The default file compiled is sample.tex

What's Inside

  • 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

Example Files

You can test the setup with the included sample.tex file:

docker run --rm -v "$PWD:/data" latex-resume

This produces sample.pdf in your current directory.

About

A docker file with Latex installed to convert .tex documents to .pdf.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors