-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
64 lines (56 loc) · 1.91 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
60
61
62
63
FROM ubuntu:20.04
ARG TEXLIVE_VERSION=2021
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NOWARNINGS=yes
ENV PATH="/usr/local/texlive/bin:$PATH"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
make \
wget \
libfontconfig1-dev \
libfreetype6-dev \
ghostscript \
perl && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
python3-pip \
python3-dev && \
pip3 install --no-cache-dir pygments && \
mkdir /tmp/install-tl-unx && \
wget -O - ftp://tug.org/historic/systems/texlive/${TEXLIVE_VERSION}/install-tl-unx.tar.gz \
| tar -xzv -C /tmp/install-tl-unx --strip-components=1 && \
/bin/echo -e 'selected_scheme scheme-basic\ntlpdbopt_install_docfiles 0\ntlpdbopt_install_srcfiles 0' \
> /tmp/install-tl-unx/texlive.profile && \
/tmp/install-tl-unx/install-tl \
--profile /tmp/install-tl-unx/texlive.profile \
-repository ftp://tug.org/texlive/historic/${TEXLIVE_VERSION}/tlnet-final/ && \
rm -r /tmp/install-tl-unx && \
ln -sf /usr/local/texlive/${TEXLIVE_VERSION}/bin/$(uname -m)-linux /usr/local/texlive/bin && \
apt-get remove -y --purge \
build-essential \
python3 && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN tlmgr update --self && \
tlmgr install \
collection-bibtexextra \
collection-fontsrecommended \
collection-langenglish \
collection-langjapanese \
collection-latexextra \
collection-latexrecommended \
collection-luatex \
collection-mathscience \
collection-plaingeneric \
collection-xetex \
latexmk \
latexdiff
WORKDIR /workdir
COPY .latexmkrc /
COPY .latexmkrc /root/