Sign inSign up

mattmahn/latex

By mattmahn

•Updated over 8 years ago

A lightweight container for building LaTeX documents

Image
3

794

mattmahn/latex repository overview

⁠docker-latex

It seems that the texlive-full Alpine Linux package maybe broken, so this doesn't work rigt now.

This container came about because I wasam using tianon/latex⁠ to build some LaTeX documents, but GitLab took a long time to pull the container, so I decided to attempt making a smaller version that will significantly improve CI build times. In addition, I also wanted to be able to use a Makefile for building.

This more lightweight version reduces the build time by about 4 minutes!

⁠Usage

⁠GitLab

Add a build job similar to the following to your .gitlab-ci.yml:

compile_pdf:
  image: mattmahn/latex
  script:
    - pslatex report.tex
    - make report.pdf
  artifacts:
    paths:
      - report.ps
      - report.pdf

⁠Development

⁠Building the container
docker build --pull -t docker-latex .
⁠Compiling sample document
docker run docker-latex pdflatex /tmp/test-sample.tex

⁠License

This is released into the public domain.

Tag summary

Content type

Image

Digest

Size

46.2 MB

Last updated

over 8 years ago

docker pull mattmahn/latex