Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
111 lines (102 loc) · 2.74 KB
/
Copy pathDockerfile
File metadata and controls
111 lines (102 loc) · 2.74 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Cannot extend corelight/aws-sphinx because texlive compiles *unworking* binaries on Alpine.
FROM centos:8
LABEL maintainer="Corelight AWS Team <aws@corelight.com>"
LABEL description="Heavyweight documentation-builder with python, perl, Sphinx and LaTeX"
ENV PATH /opt/texlive/bin/x86_64-linux:$PATH
ADD texlive.profile /tmp
# This dependency footprint is considerably large.
RUN yum update -y && \
yum install -y \
gcc \
git \
# git required by Sphinx, oddly
graphviz \
make \
perl \
perl-Digest-MD5 \
python3 \
python3-pip \
wget \
xz && \
echo -e "[google-chrome]\nname=google-chrome\nbaseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64\nenabled=1\ngpgcheck=1\ngpgkey=https://dl.google.com/linux/linux_signing_key.pub" > /etc/yum.repos.d/google-chrome.repo && \
dnf -y install google-chrome-stable && \
pip3 install -U \
alabaster==0.7.12 \
Babel==2.7.0 \
colorama==0.3.3 \
daemonize==2.3.1 \
docutils==0.15.2 \
imagesize==1.1.0 \
Jinja2==2.10.3 \
jmespath==0.7.1 \
MarkupSafe==1.1.1 \
passlib==1.6.5 \
pyasn1==0.1.8 \
Pygments==2.5.2 \
pyslack==0.3.0 \
python-dateutil==2.4.2 \
python-gitlab==2.2.0 \
pytz==2019.3 \
pyyaml==3.12 \
requests==2.22.0 \
rsa==3.4.2 \
six==1.13.0 \
snowballstemmer==2.0.0 \
sphinxemoji==0.1.4 \
sphinx-better-theme==0.1.5 \
sphinx-copybutton==0.2.8 \
sphinx-rtd-theme==0.1.9 \
Sphinx==2.2.2 && \
yum clean all
# Failover is required at critical step because install-tl "succeeds with warnings",
# i.e., finishes with non-zero return code, unhelpfully.
RUN cd /tmp && \
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
tar xzf install-tl-unx.tar.gz && \
(install-tl-*/install-tl --profile /tmp/texlive.profile || echo "NOTE: install-tl exit value: $?") && \
rm -rf /tmp/*
# SHELL ["/bin/bash", "-c"]
RUN tlmgr install \
bbding \
bitset \
capt-of \
cmap \
catchfile \
collection-fontsrecommended \
environ \
eqparbox \
etoolbox \
fancybox \
fncychap \
fancyvrb \
float \
framed \
fvextra \
ifplatform \
latexmk \
letltxmacro \
lineno \
mdwtools \
minted \
multirow \
needspace \
parskip \
pdfescape \
tabulary \
threeparttable \
titlesec \
trimspaces \
upquote \
varwidth \
wrapfig \
xcolor \
xstring
# Other tlmgr packages of possible relevance:
# babel-english \
# comment \
# fancyhdr \
# fontawesome \
# genmisc \
# lastpage \
# pgf \
# units \