-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-r-base-tidyverse
86 lines (77 loc) · 2.22 KB
/
Dockerfile-r-base-tidyverse
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
# You can use, for example, the following command to build the intermediate image:
# docker build -f Dockerfile-r-base-tidyverse -t vinkenoogm/r-base-tidyverse .
# Base image https://hub.docker.com/u/rocker/
#FROM rocker/r-base:latest
#FROM rocker/r-base:3.6.3
#FROM rocker/r-ubuntu:18.04
#FROM rocker/r-ubuntu:20.04
FROM rocker/r-ubuntu:22.04
## install debian packages needed for tidyverse
#RUN add-apt-repository -y "ppa:marutter/rrutter3.5"
#RUN add-apt-repository -y -y "ppa:marutter/c2d4u3.5"
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
#libv8-dev \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
libcurl4-openssl-dev \
libssl-dev \
pandoc \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-plain-generic \
lmodern
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
r-cran-bh \
r-cran-rstan \
r-cran-v8 \
r-cran-brms \
r-cran-e1071 \
r-cran-tidyverse \
r-cran-magrittr \
r-cran-knitr
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
r-cran-rook \
r-cran-plumber \
r-cran-rocr \
r-cran-furrr \
r-cran-tictoc \
r-cran-entropy \
r-cran-ggmcmc \
r-cran-ggthemes \
r-cran-proc \
r-cran-ranger \
r-cran-rjson \
r-cran-kernlab \
r-cran-doparallel
#r-cran-caret # Now installing from my GitHub repo
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
r-cran-sn \
r-cran-slider \
r-cran-cowplot \
r-cran-gridextra \
r-cran-desctools \
r-cran-bayestestr \
r-cran-ggforce \
r-cran-stringi \
r-cran-randomforest \
r-cran-kableextra \
r-cran-lobstr \
r-cran-devtools
RUN apt-get -y --no-install-recommends install time
# Python is not needed since the shapper R package is not used anymore
#RUN apt-get update && apt-get install -y --no-install-recommends build-essential libpq-dev python3.8 python3-pip python3-setuptools python3-dev
#RUN pip3 install --upgrade pip
#RUN pip3 install shap
## copy files
COPY src/docker-create-r-toolchain.R /docker-create-r-toolchain.R
COPY src/docker-install-packages2.R /docker-install-packages2.R
## install R-packages
RUN Rscript /docker-create-r-toolchain.R # this is for rstan
RUN Rscript /docker-install-packages2.R