-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
51 lines (47 loc) · 1.43 KB
/
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
FROM python:3.7-slim-bullseye
COPY ./texlive.profile /tmp/install-tl-unx/texlive.profile
COPY ./amivtex /usr/local/texlive/texmf-local/tex/latex/amivtex
# Add texlive directory to the path
ENV PATH /usr/local/texlive/bin/x86_64-linux:$PATH
RUN apt-get update && apt-get install -y --no-install-recommends \
perl \
wget \
# Xelatex needs libfontconfig
libfontconfig \
# Small tools to allow entrypoint to check if fonts are installed
fontconfig \
&& \
rm -rf /var/lib/apt/lists/* && \
# Download Installer
wget -O- http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | \
tar -xz -C /tmp/install-tl-unx --strip-components=1 && \
# Install basic TeX
/tmp/install-tl-unx/install-tl \
--profile=/tmp/install-tl-unx/texlive.profile && \
# Install xelatex and all required packages
tlmgr install \
collection-latex \
collection-langgerman \
xetex \
polyglossia \
xcolor \
pgf \
koma-script \
titlesec \
extsizes \
changepage \
ms \
blindtext \
hyperref \
zapfding \
etoolbox \
# required for iflang
oberdiek \
&& \
# Cleanup
rm -rf /tmp/install-tl-unx && \
apt-get purge -y --auto-remove \
perl
# Entrypoint script downloads non-public fonts at container start
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]