forked from dodona-edu/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdodona-r.dockerfile
55 lines (51 loc) · 1.29 KB
/
dodona-r.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
FROM r-base:4.0.4
# Make sure the students can't find our secret path, which is mounted in
# /mnt with a secure random name.
RUN apt-get update && \
apt-get install -y --no-install-recommends procps=2:3.3.16-5 libcurl4-openssl-dev=7.74.0-1 libssl-dev=1.1.1i-3 libxml2-dev=2.9.10+dfsg-6.3+b1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
chmod 711 /mnt && \
groupmod -n runner docker && \
usermod -l runner -d /home/runner docker && \
mkdir -p /home/runner/workdir && \
chown -R runner:runner /home/runner && \
chown -R runner:runner /mnt && \
Rscript -e "install.packages(c( \
'GGally' \
, 'HistData' \
, 'ISLR' \
, 'MASS' \
, 'NHANES' \
, 'R6' \
, 'RColorBrewer' \
, 'ROCR' \
, 'base64enc' \
, 'car' \
, 'coin' \
, 'dplyr' \
, 'dslabs' \
, 'e1071' \
, 'gam' \
, 'gbm' \
, 'ggplot2' \
, 'ggrepel' \
, 'ggridges' \
, 'ggthemes' \
, 'glmnet' \
, 'gridExtra' \
, 'jsonlite' \
, 'kableExtra' \
, 'leaps' \
, 'multcomp' \
, 'plotrix' \
, 'pls' \
, 'randomForest' \
, 'scales' \
, 'scatterplot3d' \
, 'tidyverse' \
, 'tree' \
))"
USER runner
WORKDIR /home/runner/workdir
COPY main.sh /main.sh