-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
153 lines (148 loc) · 5.25 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
FROM havengrc-docker.jfrog.io/rocker/rstudio:4.0.4
LABEL maintainer="Kindly Ops, LLC <support@kindlyops.com>"
LABEL org.opencontainers.image.source="https://github.com/kindlyops/reporter"
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -f -y --no-install-recommends \
curl apt-utils ca-certificates zlib1g-dev libproj-dev xzdec gnupg fontconfig \
libxml2-dev rsync \
biber \
cm-super \
dvipng \
ghostscript \
gnuplot \
make \
latex-cjk-all \
latex-cjk-common \
latex-cjk-chinese \
latexmk \
lcdf-typetools \
lmodern \
poppler-utils \
psutils \
purifyeps \
python3-setuptools \
python3-pygments \
t1utils \
tex-gyre \
tex4ht \
texlive-base \
texlive-bibtex-extra \
texlive-binaries \
texlive-extra-utils \
texlive-font-utils \
texlive-fonts-extra \
texlive-fonts-extra-links \
texlive-fonts-recommended \
texlive-formats-extra \
texlive-lang-all \
texlive-lang-chinese \
texlive-lang-cjk \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-luatex \
texlive-metapost \
texlive-pictures \
texlive-plain-generic \
texlive-pstricks \
texlive-publishers \
texlive-science \
texlive-xetex \
texlive-bibtex-extra &&\
# delete Tex Live sources and other potentially useless stuff
echo "Delete TeX Live sources and other useless stuff." &&\
(rm -rf /usr/share/texmf/source || true) &&\
(rm -rf /usr/share/texlive/texmf-dist/source || true) &&\
find /usr/share/texlive -type f -name "readme*.*" -delete &&\
find /usr/share/texlive -type f -name "README*.*" -delete &&\
(rm -rf /usr/share/texlive/release-texlive.txt || true) &&\
(rm -rf /usr/share/texlive/doc.html || true) &&\
(rm -rf /usr/share/texlive/index.html || true)
# clean up all temporary files
# echo "Clean up all temporary files." &&\
# apt-get clean -y &&\
# rm -rf /var/lib/apt/lists/* &&\
# rm -f /etc/ssh/ssh_host_* &&\
# # delete man pages and documentation
# echo "Delete man pages and documentation." &&\
# rm -rf /usr/share/man &&\
# mkdir -p /usr/share/man &&\
# find /usr/share/doc -depth -type f ! -name copyright -delete &&\
# find /usr/share/doc -type f -name "*.pdf" -delete &&\
# find /usr/share/doc -type f -name "*.gz" -delete &&\
# find /usr/share/doc -type f -name "*.tex" -delete &&\
# (find /usr/share/doc -type d -empty -delete || true) &&\
# mkdir -p /usr/share/doc &&\
# rm -rf /var/cache/apt/archives &&\
# mkdir -p /var/cache/apt/archives &&\
# rm -rf /tmp/* /var/tmp/* &&\
# (find /usr/share/ -type f -empty -delete || true) &&\
# (find /usr/share/ -type d -empty -delete || true) &&\
# mkdir -p /usr/share/texmf/source &&\
# mkdir -p /usr/share/texlive/texmf-dist/source
RUN apt-get install -f -y --no-install-recommends \
emacs-intl-fonts \
fonts-arphic-bkai00mp \
fonts-arphic-bsmi00lp \
fonts-arphic-gbsn00lp \
fonts-arphic-gkai00mp \
fonts-arphic-ukai \
fonts-arphic-uming \
fonts-dejavu \
fonts-dejavu-core \
fonts-dejavu-extra \
fonts-droid-fallback \
fonts-firacode \
fonts-guru \
fonts-guru-extra \
fonts-liberation \
fonts-opensymbol \
fonts-roboto \
fonts-roboto-hinted \
fonts-stix \
fonts-symbola \
fonts-texgyre \
fonts-unfonts-core && \
# update font cache
echo "Update font cache." &&\
update-ca-certificates &&\
fc-cache -fv
RUN install2.r --deps=TRUE remotes \
&& install2.r --deps=TRUE tinytex \
&& install2.r --deps=TRUE formatR \
&& install2.r --deps=TRUE rmarkdown \
&& installGithub.r --deps=TRUE kindlyops/ggradar \
&& install2.r --deps=TRUE tint \
&& install2.r --deps=TRUE gridExtra \
&& install2.r --deps=TRUE ggthemes \
&& install2.r --deps=TRUE reshape2 \
&& install2.r --deps=TRUE cowplot \
&& install2.r --deps=TRUE likert \
&& installGithub.r --deps=TRUE haozhu233/kableExtra \
&& installGithub.r --deps=TRUE hrbrmstr/knitrengines \
&& installGithub.r --deps=TRUE hadley/emo
# versioned rocker images have repo set to MRAN snapshots for reproducibility
#&& install2.r --deps=TRUE kableExtra
#RUN apt-get install -y texlive-xetex
#RUN apt-get install -y texlive-fonts-recommended texlive-fonts-extra ghostscript
# RUN mkdir /usr/local/context && \
# cd /usr/local/context && \
# wget http://minimals.contextgarden.net/setup/first-setup.sh && \
# chmod +x first-setup.sh && \
# sh first-setup.sh
# ENV OSFONTDIR=/usr/share/fonts
# ENV TEXROOT=/usr/local/context/tex
# ENV PATH=/usr/local/context/tex/texmf-linux-64/bin:/usr/local/context/bin:$PATH
#RUN fc-cache -fv /usr/share/fonts/
# lets do the super insecure thing
# https://tex.stackexchange.com/questions/528634/tlmgr-unexpected-return-value-from-verify-checksum-5
#RUNtlmgr init-usertree
#RUN tlmgr option repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final
#RUN tlmgr install roboto fetamont --verify-repo=none || true
COPY install-source-pro.sh /install-source-pro.sh
RUN /install-source-pro.sh
COPY compilereport.sh /compilereport.sh
RUN installGithub.r kindlyops/tufte@custom
ENTRYPOINT ["/compilereport.sh"]