-
Notifications
You must be signed in to change notification settings - Fork 501
Add Dockerfile for LaTeX build #2092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
mortenpi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need the fonts, like in the old image?
We also had ENV DEBIAN_FRONTEND noninteractive. I am not 100% sure why though. Maybe @fredrikekre remembers?
| RUN set -eux; \ | ||
| apt-get update; \ | ||
| apt-get install --no-install-recommends -y \ | ||
| # minimal texlive | ||
| texlive-luatex \ | ||
| texlive-latex-base \ | ||
| texlive-latex-recommended \ | ||
| texlive-latex-extra \ | ||
| # latexmk: LaTeX build tool | ||
| latexmk \ | ||
| # code highlighting | ||
| python-pygments \ | ||
| # refresh the font cache | ||
| fontconfig \ | ||
| ; \ | ||
| rm -rf /var/lib/apt/lists/*; \ | ||
| apt-get purge -y --auto-remove; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure bikeshed, but I think Docker supports heredocs, which should allow us to get rid of the \s?
| # SPDX-License-Identifier: MIT OR CC0-1.0 | ||
| # build image: | ||
| # docker build -t juliadocs/documenter-latex:1.0 . | ||
| FROM ubuntu:18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's update this. Could be conservative and use 22.04 though.
Tectonic should be used via a JLL I think, so shouldn't be necessary to have an image?
Sounds reasonable.
Fine by be. I feel that it's not particularly copyrightable anyway, for what it's worth. So CC0 seems suitable. |
Fix #2073
ubuntu:latesttectonicdocker image?juliadocs/documenter-tectonicAnd rename texlive-based image to:
juliadocs/documenter-texliveEstimated size is 100MB~. And current image is 430MB+
juliadocstodo
JuliaDocs/Documenter.jlJuliaLang/juliaDOCKER_IMAGE_TAGinsrc/latex/LaTeXWriter.jlNote:
MIT OR CC0-1.0for Dockerfile, Because I think it makes it easy for people to copy and paste