-
Notifications
You must be signed in to change notification settings - Fork 56
/
Dockerfile
77 lines (73 loc) · 2.05 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
# Copyright (c) UBC-DSCI Development Team.
FROM rocker/verse:4.3.1
RUN apt-get update --fix-missing
RUN Rscript -e "update.packages(ask = FALSE)"
RUN install2.r --error magick \
cowplot \
kableExtra \
plotly \
tidymodels \
tidyclust \
kknn \
ggpubr \
ggforce \
themis \
egg \
fontawesome \
xfun \
tinytex \
reticulate \
rsvg
RUN Rscript -e "devtools::install_github('ttimbers/[email protected]')"
RUN Rscript -e "reticulate::install_miniconda()"
RUN Rscript -e "reticulate::conda_install('r-reticulate', 'python-kaleido')"
RUN Rscript -e "reticulate::conda_install('r-reticulate', 'plotly', channel = 'plotly')"
# necessary for tuning number of clusters in Kmeans
# see https://github.com/tidymodels/tidyclust/issues/127
RUN apt install -y libgsl27
# increase the ImageMagick resource limits
# this relies on the fact that there is only one place where each of these sizes are used in policy.xml
# (256MiB is for memory, 512MiB is for map, 1GiB is for disk)
RUN sed -i 's/256MiB/8GiB/' /etc/ImageMagick-6/policy.xml
RUN sed -i 's/512MiB/8GiB/' /etc/ImageMagick-6/policy.xml
RUN sed -i 's/1GiB/8GiB/' /etc/ImageMagick-6/policy.xml
## install LaTeX packages
RUN tlmgr install \
amsmath \
latex-amsmath-dev \
iftex \
euenc \
fontspec \
tipa \
unicode-math \
xunicode \
kvoptions \
ltxcmds \
kvsetkeys \
etoolbox \
xcolor \
fancyvrb \
framed \
booktabs \
mdwtools \
float \
caption \
sourcecodepro \
hyperref \
amscls \
multirow \
wrapfig \
colortbl \
pdflscape \
tabu \
varwidth \
threeparttable \
threeparttablex \
environ \
trimspaces \
ulem \
makecell \
natbib \
pdftexcmds \
infwarerr \
fontawesome5