-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (68 loc) · 1.97 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
64
65
66
67
68
69
70
71
72
73
74
75
FROM debian:stretch-slim
LABEL \
author="Maxime Garcia" \
description="Image for compile-latex" \
maintainer="max.u.garcia@gmail.com"
# Set up ENV
ENV LANG=C.UTF-8
# Install pre-requistes
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
fontconfig \
git \
lmodern \
procps \
python-pygments \
wget \
&& rm -rf /var/lib/apt/lists/*
# Setup ENV variables
ENV \
TL_BIN="install-tl-unx.tar.gz" \
PATH="$PATH:/usr/local/texlive/2018/bin/x86_64-linux"
COPY texlive.profile /opt/
# Install TeX Live
RUN \
wget -q http://mirror.ctan.org/systems/texlive/tlnet/$TL_BIN \
-O /opt/$TL_BIN \
&& tar xzf /opt/$TL_BIN -C /opt/ \
&& mv /opt/install-tl-2* /opt/install-tl/ \
&& mv /opt/texlive.profile /opt/install-tl/ \
&& cd /opt/install-tl \
&& ./install-tl --profile=texlive.profile \
&& rm -rf /opt/$TL_BIN /opt/$TL_DIR
# Install Fonts, mtheme, modernCV
RUN \
mkdir -p \
/usr/share/fonts/truetype/academicons \
&& tlmgr update --self \
&& tlmgr init-usertree \
&& tlmgr install academicons \
&& tlmgr install beamertheme-metropolis \
&& tlmgr install biber \
&& tlmgr install biblatex \
&& tlmgr install ccicons \
&& tlmgr install collection-fontsrecommended \
&& tlmgr install collection-xetex \
&& tlmgr install contour \
&& tlmgr install csquotes \
&& tlmgr install fontawesome5 \
&& tlmgr install framed \
&& tlmgr install fvextra \
&& tlmgr install ifplatform \
&& tlmgr install import \
&& tlmgr install logreq \
&& tlmgr install minted \
&& tlmgr install moderncv \
&& tlmgr install pgfopts \
&& tlmgr install ulem \
&& tlmgr install upquote \
&& tlmgr install xstring \
&& git clone https://github.com/jpswalsh/academicons.git \
academicons \
&& find academicons/ -name "*.ttf" -exec install -m644 {} /usr/share/fonts/truetype/academicons/ \; || return 1 \
&& rm -rf \
academicons* \
&& texhash \
&& fc-cache -fsv