-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (51 loc) · 1.65 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
FROM ubuntu:jammy
ARG USERNAME=latex
ARG UID=1000
ARG GID=$UID
RUN groupadd --gid $GID $USERNAME \
&& useradd --uid $UID --gid $GID -m $USERNAME
ARG TZ
ENV TZ="$TZ"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update \
&& apt-get install -y build-essential wget curl libfontconfig1 tzdata \
&& rm -rf /var/lib/apt/lists/*
ARG TEXLIVE_MIRROR=https://mirror.ctan.org/systems/texlive/tlnet
ENV MANPATH "${MANPATH}:/usr/local/texlive/2023/texmf-dist/doc/man"
ENV INFOPATH "${INFOPATH}:/usr/local/texlive/2023/texmf-dist/doc/info"
ENV PATH "${PATH}:/usr/local/texlive/2023/bin/x86_64-linux"
RUN mkdir /install-tl-unx \
&& curl -sSL \
${TEXLIVE_MIRROR}/install-tl-unx.tar.gz \
| tar -xzC /install-tl-unx --strip-components=1 \
\
&& echo "tlpdbopt_autobackup 0" >> /install-tl-unx/texlive.profile \
&& echo "tlpdbopt_install_docfiles 0" >> /install-tl-unx/texlive.profile \
&& echo "tlpdbopt_install_srcfiles 0" >> /install-tl-unx/texlive.profile \
&& echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile \
\
&& /install-tl-unx/install-tl \
-profile /install-tl-unx/texlive.profile \
-repository ${TEXLIVE_MIRROR} \
&& rm -rf /install-tl-unx
RUN tlmgr install --repository ${TEXLIVE_MIRROR} \
latexmk \
texcount \
luatexbase \
luainputenc \
environ \
trimspaces \
fontspec \
parskip \
xcolor \
preprint \
fontawesome5 \
titlesec \
enumitem \
etoolbox \
pgf \
tcolorbox \
tikzfill
USER $USERNAME
WORKDIR /data/src
VOLUME ["/data"]