forked from UBC-DSCI/introduction-to-datascience
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
109 lines (101 loc) · 2.63 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
# Copyright (c) UBC-DSCI Development Team.
FROM rocker/verse:4.1.1
# install system dependencies
RUN apt-get update --fix-missing \
&& apt-get install -y \
ca-certificates \
libglib2.0-0 \
libxext6 \
libsm6 \
libxrender1 \
libxml2-dev
# install libGLPK, gdal-config, libunits
RUN apt-get install -y libglpk-dev gdal-bin libgdal-dev libudunits2-0 libudunits2-dev
# install R packages
RUN apt-get update -qq && install2.r --error \
--deps TRUE \
tidyverse \
e1071 \
caret \
plotly \
gridExtra \
GGally \
cowplot \
svglite \
tidymodels \
reticulate \
kknn \
fontawesome \
rsvg \
reticulate \
kableExtra \
egg \
ggpubr
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')"
RUN Rscript -e "devtools::install_github('mountainMath/cancensus@5a5d61759d477986d40dd87fa9a6532ff6037efe')"
RUN Rscript -e "devtools::install_github('ttimbers/canlang@0.0.1')"
# install LaTeX packages
RUN tlmgr install amsmath \
latex-amsmath-dev \
fontspec \
tipa \
unicode-math \
xunicode \
kvoptions \
ltxcmds \
kvsetkeys \
etoolbox \
xcolor \
auxhook \
bigintcalc \
bitset \
etexcmds \
gettitlestring \
hycolor \
hyperref \
intcalc \
kvdefinekeys \
letltxmacro \
pdfescape \
refcount \
rerunfilecheck \
stringenc \
uniquecounter \
zapfding \
pdftexcmds \
infwarerr \
fancyvrb \
framed \
booktabs \
mdwtools \
grffile \
caption \
sourcecodepro \
amscls \
natbib \
float \
multirow \
wrapfig \
colortbl \
pdflscape \
varwidth \
threeparttable \
threeparttablex \
environ \
trimspaces \
ulem \
makecell \
tabu
# 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/4GiB/' /etc/ImageMagick-6/policy.xml
RUN sed -i 's/512MiB/4GiB/' /etc/ImageMagick-6/policy.xml
RUN sed -i 's/1GiB/4GiB/' /etc/ImageMagick-6/policy.xml
# install version of tinytex with fixed index double-compile (no release for this yet, so install from commit hash)
RUN Rscript -e "remove.packages('xfun')"
RUN Rscript -e "devtools::install_github('yihui/xfun@v0.29')"
RUN Rscript -e "remove.packages('tinytex')"
RUN Rscript -e "devtools::install_github('yihui/tinytex@5d211d43944d322fca49e5f0d97f34b9c46ff9ab')"