-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
30 lines (27 loc) · 1.58 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
FROM texlive/texlive:latest
MAINTAINER soulmachine <soulmachine@gmail.com>
# References:
# * https://github.com/James-Yu/LaTeX-Workshop/blob/master/.devcontainer/stable/Dockerfile
RUN apt -y update && apt -y dist-upgrade && apt -y install wget apt-transport-https fontconfig procps \
&& echo "##### Install the Linux Libertine font http://www.linuxlibertine.org/ #####" \
&& apt -y install fonts-linuxlibertine \
&& echo "##### Install Microsoft's TrueType core fonts #####" \
&& echo "deb http://httpredir.debian.org/debian testing main contrib" >> /etc/apt/sources.list \
&& apt -y update \
&& echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
&& apt -y install ttf-mscorefonts-installer \
&& echo "##### Install the PT Sans Narrow font #####" \
&& tmp_dir=$(mktemp -d) \
&& wget --no-check-certificate https://fonts.google.com/download?family=PT%20Sans%20Narrow -O $tmp_dir/pt_sans_narrow.zip \
&& unzip $tmp_dir/pt_sans_narrow.zip -d $tmp_dir \
&& mkdir -p /usr/share/fonts/truetype/pt_sans_narrow \
&& cp $tmp_dir/*.ttf /usr/share/fonts/truetype/pt_sans_narrow \
&& rm -rf $tmp_dir \
&& echo "##### Install Adobe fonts #####" \
&& mkdir -p /usr/share/fonts/opentype/adobe \
&& git clone https://github.com/microcai/gentoo-handbook.git \
&& cp ./gentoo-handbook/fonts/Adobe*.otf /usr/share/fonts/opentype/adobe && rm -rf ./gentoo-handbook \
&& echo "##### Rebuild font cache #####" \
&& fc-cache -fv \
&& echo "##### Clean up #####" \
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*