forked from isglobal-brge/nlOmicAssoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
72 lines (60 loc) · 2.02 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
#################################################################
# Dockerfile
#
# Version: 1
# Date 160617
# Review2 0050518 added ggplot2 and updated some comments
# Review1 030418 added caret and gam removed mda from r-base: 3.4.3
# Software: R
# Description: R and necessary packages
# Website: https://github.com/isglobal-brge/nlOmicAssoc|https://hub.docker.com/r/lnonell/nlomicsassoc
# Tags: None, for the moment
# Base Image: R
#################################################################
##Image created on a debian
FROM r-base:3.4.3
#xml needed by Rcompression
#curl needed by RCurl
RUN apt-get update && apt-get install -y \
r-cran-xml \
#curl \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev #per paquet xml2
ENV PATH=pkg-config:$PATH
#Rcompression needed by RCurl
RUN install2.r -r http://www.omegahat.net/R --deps TRUE \
Rcompression \
&& rm -rf /tmp/downloaded_packages/
## First block of R packages installation
RUN install2.r --error --deps TRUE \
RCurl \
xml2 \
mfp \
stringr \
RUnit \
mgcv \
mvtnorm \
&& rm -rf /tmp/downloaded_packages/
# Second block of bioconductor R packages needed for the third block R packages
RUN Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("Biobase");biocLite("KEGGgraph");biocLite("biomaRt");'
## Finally last block
RUN install2.r --error --deps TRUE \
MASS \
gam \
mboost \
partDSA \
nnet \
randomForest \
vegan \
devtools \
NeuralNetTools \
mice \
caret \
&& rm -rf /tmp/downloaded_packages/
#ggplot2 seems not to work through install2.r
RUN Rscript -e 'install.packages("ggplot2")'
#splines has been moved to archive
RUN wget https://cran.r-project.org/src/contrib/Archive/splines/splines_2.0-7.tar.gz -P /tmp/downloaded_packages
RUN Rscript -e 'install.packages("/tmp/downloaded_packages/splines_2.0-7.tar.gz", repos = NULL, type = "source")'
##That's all for the moment