This branch contains the Dockerfile
that builds the latest
tag of the Docker image udsdepend/latex
.
The image will always be based on debian:testing
and will install the latest version of TeX Live available in the official Debian distribution (package texlive-full
).
To make use of Docker's build cache, first try to pull the image with the desired tag that you want to build or update from Docker Hub.
sudo docker pull udsdepend/latex:latest || true
(The above step is not mandatory to build an image. If you don't want to pull the image, then remove the --cache-from
arguments from the following commands.)
sudo docker build --pull --cache-from udsdepend/latex:latest --tag udsdepend/latex:latest .
sudo docker build --pull --cache-from udsdepend/latex:latest --tag udsdepend/latex:latest "https://github.com/udsdepend/latex-docker.git#main"
Before pushing a new tag to Docker Hub, please make sure to follow these steps to verify the successful installation of TeX Live.
- Processing the LaTeX Sample Document:
Check the output log for warnings or errors. The final lines should look like:
sudo docker run --rm -it udsdepend/latex:latest pdflatex sample2e
Output written on sample2e.pdf (3 pages, 142110 bytes). Transcript written on sample2e.log.
- Run the LaTeX Test Program:
Follow the on-screen instructions. Especially make sure that the output contains no error messages starting with
sudo docker run --rm -it udsdepend/latex:latest pdflatex ltxcheck
! BAD
.
# log in to Docker Hub
sudo docker login
# push the image
sudo docker push udsdepend/latex:latest
# remove the saved credentials
sudo docker logout