-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (27 loc) · 1.31 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
# FROM r-base:latest
FROM rpy2/base-ubuntu:latest
COPY --from=r-base:latest /usr/bin/R /usr/bin/R
WORKDIR /app
COPY requirements.txt /app
# Binds command 'python' to 'python3' and install dependencies
RUN ln -s /usr/bin/python3 /usr/bin/python && pip3 install -r /app/requirements.txt
RUN git clone https://github.com/cran/GPArotation.git
RUN R CMD INSTALL -l /usr/lib/R/site-library GPArotation
# permute for vegan
RUN git clone https://github.com/cran/permute.git
RUN R CMD INSTALL -l /usr/lib/R/site-library permute
RUN git clone https://github.com/cran/vegan.git
RUN R CMD INSTALL -l /usr/lib/R/site-library vegan
RUN git clone https://github.com/cran/Deriv.git
RUN R CMD INSTALL -l /usr/lib/R/site-library Deriv
#RcppArmadillo for dcurver and mirt
RUN git clone https://github.com/cran/RcppArmadillo.git
RUN R CMD INSTALL -l /usr/lib/R/site-library RcppArmadillo
RUN git clone https://github.com/cran/dcurver.git
RUN R CMD INSTALL -l /usr/lib/R/site-library dcurver
RUN git clone https://github.com/philchalmers/mirt
RUN R CMD INSTALL -l /usr/lib/R/site-library mirt
# * installing to library '/usr/local/lib/R/site-library'
# ERROR: dependencies 'GPArotation', 'vegan', 'Deriv', 'dcurver', 'RcppArmadillo' are not available for package 'mirt'
# * removing '/usr/local/lib/R/site-library/mirt'
# RUN apt-get -y update