-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 804 Bytes
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
FROM ipython/scipystack
RUN apt-get install -y r-base r-base-dev r-cran-rcurl libreadline-dev
RUN apt-get install gsl-bin libgsl0-dev
RUN pip2 install dendropy
RUN useradd -m -s /bin/bash squamate
USER squamate
ENV HOME /home/squamate
ENV SHELL /bin/bash
ENV USER squamate
# Setup the R environment
RUN echo 'R_LIBS_USER=~/.R:/usr/lib/R/site-library' > /home/squamate/.Renviron
RUN echo 'options(repos=structure(c(CRAN="http://cran.rstudio.com")))' > /home/squamate/.Rprofile
RUN mkdir /home/squamate/.R/
# R dev helpers
RUN echo "install.packages(c('RCurl', 'devtools'))" | R --no-save
RUN echo "install.packages(c('diversitree'))" | R --no-save
USER root
ADD . /home/squamate/squamates
RUN chown -R squamate:squamate /home/squamate
USER squamate
WORKDIR /home/squamate/squamates
CMD ["make"]