-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (26 loc) · 963 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
FROM continuumio/miniconda
# This is here otherwise R does not install.
# We would like this step to be removed.
RUN set -ex \
# STEP 0) We would like this to not be needed.
&& apt-get update -yqq \
&& apt-get install -y lsb-release binutils \
&& apt-get install -y libc-dev libcloog-isl4 libmpfr4 libmpc3 make \
# clean up to minimize image layer size \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge -y --auto-remove $buildDeps
# Create the R Environment
RUN set -ex \
# \
# update conda \
&& conda update conda -y \
# \
# create R environment \
&& conda create -y -n r -c r gcc openjdk r-essentials r-rjava \
&& conda clean --tarballs --packages
# Set shell to BASH so we can source activate r and continue the rest of the work.
SHELL [ "/bin/bash", "-ce" ]
# This fails, libjvm.so was not linked to rJava using rpath
RUN source activate r \
&& R CMD javareconf \
&& R -e 'library(rJava)'