-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
63 lines (55 loc) · 1.67 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 debian:bullseye-slim
ENV TEXLIVE_VERSION 2023
ENV PATH $PATH:/usr/local/texlive/${TEXLIVE_VERSION}/bin/x86_64-linux
WORKDIR /tmp
RUN apt update \
&& apt install -y \
perl \
python3-pygments \
fonts-noto-cjk \
fonts-noto-cjk-extra \
ghostscript \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt update \
&& apt install -y \
libfontconfig-dev \
wget \
xz-utils \
&& wget -nv -O install-tl.tar.gz \
https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir install-tl \
&& tar -xzf install-tl.tar.gz -C install-tl --strip-components=1 \
&& cd install-tl \
&& printf "%s\n" \
"selected_scheme scheme-basic" \
"option_doc 0" \
"option_src 0" \
> ./texlive.profile \
&& ./install-tl --profile=./texlive.profile \
&& tlmgr install \
collection-latexrecommended \
collection-latexextra \
collection-fontsrecommended \
collection-langjapanese \
latexmk \
xetex \
&& mkdir -p \
/usr/local/texlive/texmf-local/fonts/opentype/google/notosanscjk/ \
&& mkdir -p \
/usr/local/texlive/texmf-local/fonts/opentype/google/notoserifcjk/ \
&& ln -s /usr/share/fonts/opentype/noto/NotoSansCJK-*.ttc \
/usr/local/texlive/texmf-local/fonts/opentype/google/notosanscjk/ \
&& ln -s /usr/share/fonts/opentype/noto/NotoSerifCJK-*.ttc \
/usr/local/texlive/texmf-local/fonts/opentype/google/notoserifcjk/ \
&& mktexlsr \
&& cd ../ \
&& rm -rf install-tl \
&& apt purge -y xz-utils libfontconfig-dev \
&& apt autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /texsrc
VOLUME /texsrc
WORKDIR /texsrc
CMD ["/bin/bash"]