-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (53 loc) · 1.78 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
ARG VARIANT=ubuntu-22.04
FROM mcr.microsoft.com/devcontainers/base:${VARIANT}
# Install additional OS packages
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
bash-completion \
biber \
bibtool \
cpanminus \
fontconfig \
ghostscript \
latexdiff \
latexmk \
make \
pdftk \
poppler-utils \
python-is-python3 \
python3-pip \
python3-pygments \
texlive-bibtex-extra \
texlive-extra-utils \
texlive-font-utils \
texlive-fonts-extra \
texlive-fonts-recommended \
texlive-latex-base \
texlive-latex-extra \
texlive-publishers \
texlive-science \
xzdec \
&& rm -rf /var/lib/apt/lists/*
RUN pip install arxiv-latex-cleaner
# Install additional fonts
## Microsoft
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
&& apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
ttf-mscorefonts-installer \
&& rm -rf /var/lib/apt/lists/* \
&& fc-cache -vr
## Dependencies for 'auriga' (beamer) & 'gemini' (beamerposter) themes. See:
## - https://github.com/anishathalye/auriga
## - https://github.com/anishathalye/gemini
RUN cd /usr/share/fonts/truetype \
&& \
for font in hack lato raleway; do \
mkdir ${font}; \
wget -O ${font}.zip https://www.fontsquirrel.com/fonts/download/${font}; \
unzip -n -d ${font} ${font}.zip; \
rm ${font}.zip; \
done \
&& fc-cache -vr
# Install 'latexindent' Perl dependencies
RUN cpanm -fi Log::Dispatch::File YAML::Tiny File::HomeDir