Skip to content

Commit

Permalink
Switching to default texlive distribution instead of full
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Mar 16, 2024
1 parent 4a17317 commit d299773
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,29 @@ To know more command-line options of `latexmk`:
docker run --rm --net=none leplusorg/latex latexmk -h
```

## texlive vs texlive-full

Version 1 of this image was using the
[texlive-full](https://packages.ubuntu.com/search?keywords=texlive-full&searchon=names&exact=1&suite=all&section=all)
Ubuntu package to include as much TeX Live packages pre-installed as
possible. But the resulting docker image was over 4 GB making it slow
to download and breaking some CI/CD disk limits (including the free
tier of GitHub Actions that I use). To keep the image usable by as many
people as possible, I decided with version 2 and above to switch
to the default
[texlive](https://packages.ubuntu.com/search?keywords=texlive&searchon=names&exact=1&suite=all&section=all)
package.

If you need more TeX Live packages, you have the following options:
- use version 1 of this docker image (i.e. leplusorg/latex:1).
- install texlive-full at runtime before running the latex command
that you need:

```batch
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/latex sh -c "apt-get update && apt-get install --no-install-recommends -y texlive-full && latexmk -outdir=/tmp -pdf /tmp/foo.tex"
```


## Request new tool

Please use [this link](https://github.com/leplusorg/docker-latex/issues/new?assignees=thomasleplus&labels=enhancement&template=feature_request.md&title=%5BFEAT%5D) (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.
2 changes: 1 addition & 1 deletion latex/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG JRE=default-jre-headless

# hadolint ignore=DL3008
RUN apt-get update && apt-get install --no-install-recommends -y \
texlive-full \
texlive \
# some auxiliary tools
"$WGET" \
"$GIT" \
Expand Down

0 comments on commit d299773

Please sign in to comment.