-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
59 lines (55 loc) · 1.93 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
52
53
54
55
56
57
58
59
ARG BASE_IMAGE=ghcr.io/torbenwetter/iu-latex-container-image-base
FROM $BASE_IMAGE:latest
# Add metadata labels.
LABEL org.opencontainers.image.title="IU LaTeX Container Image"
LABEL org.opencontainers.image.description="LaTeX environment for writing scientific documents at IU International University"
LABEL org.opencontainers.image.source="https://github.com/TorbenWetter/iu-latex-container-image"
LABEL org.opencontainers.image.licenses="MIT"
# Switch to the "vscode" user for installing the LaTeX packages.
USER vscode
# Version of the IU LaTeX package to install.
ARG IU_LATEX_VERSION=0.0.9
# Update TeX Live and install required packages.
# The packages are grouped by their primary purpose:
# - Language support: babel-german, hyphen-german.
# - Bibliography: biblatex, biblatex-apa.
# - Typography and layout: booktabs, caption, csquotes, fancyvrb, fontspec, ragged2e, setspace, titlesec.
# - Code and technical: etoolbox, latexindent, latexmk, lineno, minted, newfloat, parskip, sidecap, upquote.
RUN tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet \
&& tlmgr update --self --all \
&& tlmgr install \
appendix \
babel-german \
biblatex \
biblatex-apa \
booktabs \
caption \
csquotes \
etoolbox \
fancyvrb \
fontspec \
hyphen-german \
latexindent \
latexmk \
lineno \
microtype \
minted \
newfloat \
parskip \
ragged2e \
setspace \
sidecap \
titlesec \
upquote \
&& tlmgr update --all \
# Install the IU LaTeX package.
&& mkdir -p $TEXMFHOME/tex/latex/iuthesis \
&& wget -qO $TEXMFHOME/tex/latex/iuthesis/iuthesis.sty https://github.com/TorbenWetter/iu-latex-package/releases/download/v${IU_LATEX_VERSION}/iuthesis.sty \
# Update the ls-R databases.
&& texhash $TEXMFHOME \
&& texhash $TEXMFLOCAL \
&& texhash $TEXDIR/texmf-dist \
# Verify installations.
&& tlmgr version \
&& latexmk -version \
&& texhash --version