-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (35 loc) · 1.42 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
FROM odysseusinc/r-java:4.1.1
ARG GITHUB_PAT
RUN apt -yq update && DEBIAN_FRONTEND=noninteractive apt install -yq libpq-dev libgit2-dev libssh2-1-dev build-essential git-all libcurl4-openssl-dev libssl-dev libxml2-dev curl\
libxml2-dev libdigest-hmac-perl libcairo2-dev python-dev libgeos-dev libprotobuf-dev protobuf-compiler libjq-dev sudo
COPY /miniconda.sh /miniconda.sh
RUN chmod +x /miniconda.sh
RUN /miniconda.sh && rm /miniconda.sh
# Set R environment settings
COPY /rsettings/repos.sh /rsettings/repos.sh
RUN chmod +x /rsettings/repos.sh
RUN /rsettings/repos.sh
COPY /rsettings/github_authentication.sh /rsettings/github_authentication.sh
RUN chmod +x /rsettings/github_authentication.sh
RUN /rsettings/github_authentication.sh $GITHUB_PAT
RUN rm -fr /rsettings
# Detect current Java setup and update the corresponding configuration in R
RUN R CMD javareconf
# Copy and install one-by-one to take advantage of Docker layers
COPY /libs/libs_1.r /libs/libs_1.r
RUN Rscript /libs/libs_1.r
COPY /libs/libs_2.r /libs/libs_2.r
RUN Rscript /libs/libs_2.r
COPY /libs/libs_3.r /libs/libs_3.r
RUN Rscript /libs/libs_3.r
COPY /libs/libs_4.r /libs/libs_4.r
RUN Rscript /libs/libs_4.r
COPY /libs/libs_5.r /libs/libs_5.r
RUN Rscript /libs/libs_5.r
COPY /libs/libs_6.r /libs/libs_6.r
RUN Rscript /libs/libs_6.r
# Required by keras
RUN conda remove -y -n PLP PyYAML
COPY /libs/libs_7.r /libs/libs_7.r
RUN Rscript /libs/libs_7.r
WORKDIR "/workdir"