Skip to content

Commit df2971c

Browse files
authored
Update Dockerfile
1 parent 069000b commit df2971c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ RUN apt-get update -y && apt-get install -y \
2626
build-essential \
2727
cmake \
2828
python3
29+
30+
################################################################################
31+
####################### Install R ##############################################
32+
33+
# change working dir
34+
WORKDIR /usr/local/bin
35+
36+
# install R
37+
RUN wget https://cran.r-project.org/src/base/R-3/R-${r_version}.tar.gz
38+
RUN tar -zxvf R-${r_version}.tar.gz
39+
WORKDIR /usr/local/bin/R-${r_version}
40+
RUN ./configure --prefix=/usr/local/ --with-x=no
41+
RUN make
42+
RUN make install
43+
44+
# install R packages
45+
RUN R --vanilla -e 'install.packages(c("data.table", "plyr", "tidyverse"), repos = "http://cran.us.r-project.org")'
2946

3047
################################################################################
3148
##################### Add Container Labels #####################################
@@ -53,20 +70,3 @@ RUN cd /regtools/build && make
5370

5471
# add regtools executable to path
5572
ENV PATH="/regtools/build:${PATH}"
56-
57-
################################################################################
58-
####################### Install R ##############################################
59-
60-
# change working dir
61-
WORKDIR /usr/local/bin
62-
63-
# install R
64-
RUN wget https://cran.r-project.org/src/base/R-3/R-${r_version}.tar.gz
65-
RUN tar -zxvf R-${r_version}.tar.gz
66-
WORKDIR /usr/local/bin/R-${r_version}
67-
RUN ./configure --prefix=/usr/local/ --with-x=no
68-
RUN make
69-
RUN make install
70-
71-
# install R packages
72-
RUN R --vanilla -e 'install.packages(c("data.table", "plyr", "tidyverse"), repos = "http://cran.us.r-project.org")'

0 commit comments

Comments
 (0)