forked from natacha-beck/pcev_pipelineCBRAIN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (21 loc) · 880 Bytes
/
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
FROM centos
MAINTAINER Natacha Beck <[email protected]>
# Install prerequisite
RUN yum update -y
COPY . pcev_CBRAIN
# Install basic packages
RUN yum install -y unzip \
wget \
epel-release \
java-1.8.0-openjdk-headless
RUN yum install -y R
# Install all other R packages
RUN echo 'install.packages(c("pcev"), repos= "http://cran.us.r-project.org")' > /tmp/packages.R
RUN Rscript /tmp/packages.R
RUN chmod 755 pcev_CBRAIN/run_pcevCBRAIN.sh \
&& cp pcev_CBRAIN/run_pcevCBRAIN.sh /bin/
RUN chmod 755 pcev_CBRAIN/reportRedaction.sh \
&& cp pcev_CBRAIN/reportRedaction.sh /bin/
RUN chmod 755 pcev_CBRAIN/pcev_for_cbrain.R \
&& cp pcev_CBRAIN/pcev_for_cbrain.R /bin/
WORKDIR /pcev_CBRAIN/