-
Notifications
You must be signed in to change notification settings - Fork 7
/
tl-distrib-debian.Dockerfile
72 lines (55 loc) · 2.07 KB
/
tl-distrib-debian.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# LaTeX-On-HTTP intermediate Docker container,
# with the complete TexLive (& other compilers) distribution.
#
# This is:
# - a Texlive distribution (yoant/docker-texlive);
# - a selection of fonts;
# - a selection of TexLive packages.
# For inspiration:
# https://gitlab.com/islandoftex/images/texlive
#--------------------------------
# Start from our docker-texlive distribution.
# https://hub.docker.com/r/yoant/docker-texlive
FROM yoant/docker-texlive:debian-2024
LABEL maintainer="Yoan Tournade <[email protected]>"
#--------------------------------
# Install fonts.
#--------------------------------
RUN echo "deb http://deb.debian.org/debian bookworm contrib non-free" >> /etc/apt/sources.list
# Accepts Microsoft EULA.
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
# Could install any from https://packages.debian.org/stable/fonts/
# TODO Pull them all?
# TODO Dynamically pull fonts from https://fonts.google.com/?
# https://github.com/potyt/fonts/tree/master/macfonts
RUN apt-get update -qq && apt-get install -y \
fontconfig \
fonts-cmu \
fonts-liberation \
ttf-mscorefonts-installer \
fonts-dejavu \
fonts-ebgaramond \
fonts-font-awesome \
fonts-gfs-baskerville \
fonts-gfs-didot \
fonts-inconsolata \
fonts-jura \
fonts-lato \
fonts-linuxlibertine \
fonts-noto \
fonts-roboto \
&& apt-get autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists/*
#--------------------------------
# Install additionnal runtimes.
#--------------------------------
RUN apt-get update -qq && apt-get install -y \
ghostscript \
&& apt-get autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists/*
#--------------------------------
# Install Latex packages.
#--------------------------------
# TODO Make this process more dynamic with a list of packages?
COPY ./container/install_latex_packages.sh /tmp/
RUN /tmp/install_latex_packages.sh
# Notes: we need tlmgr dependencies installed, because we use it at runtime
# (for listing packages, etc.)