forked from ubc/r-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (17 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:stretch
MAINTAINER Pan Luo [email protected]
# libnlopt-dev is required by lmerTest
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
wget \
r-base \
r-base-dev \
libssl-dev \
libnlopt-dev && \
rm -rf /var/lib/apt/lists/* && \
wget --no-check-certificate https://www.rforge.net/Rserve/snapshot/Rserve_1.8-5.tar.gz && \
R CMD INSTALL Rserve_1.8-5.tar.gz && \
rm Rserve_1.8-5.tar.gz && \
Rscript -e 'install.packages(c("leaps", "tree", "glmnet", "lars", "locfit", "nnet", "randomForest", "adabag", "lmerTest", "ggplot2", "visreg", "dplyr", "car", "vegan", "ElemStatLearn", "mclust"), repo="http://cran.rstudio.com")'
EXPOSE 6311
CMD ["R", "-e", "Rserve::run.Rserve(remote=TRUE, auth=FALSE, daemon=FALSE)"]