-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (35 loc) · 1.71 KB
/
Dockerfile
File metadata and controls
39 lines (35 loc) · 1.71 KB
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
FROM rocker/geospatial
MAINTAINER "Adam M. Wilson" adamw@buffalo.edu
RUN apt-get update -y
RUN apt-get upgrade -y --allow-unauthenticated
RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
locales \
libssl-dev \
libxml2-dev \
libcairo2-dev \
libxt-dev \
libcgal-dev \
libglu1-mesa-dev \
ca-certificates \
netcat \
libsecret-1-0
# Add a default CRAN mirror
RUN mkdir -p /usr/lib/R/etc/
RUN echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')" >> /usr/lib/R/etc/Rprofile.site
# Add a directory for host R libraries
RUN mkdir -p /library
RUN echo "R_LIBS_SITE=/library:\${R_LIBS_SITE}" >> /usr/lib/R/etc/Renviron.site
# install some extra R packages
RUN R -e "install.packages('maxnet', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('Morpho', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('rgl', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('ENMeval', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('scales', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('viridis', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('rjags', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('coda', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('mcmc', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('colourvalues', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('BiocManager', method='wget', quiet=T, verbose=F)"
RUN R -e "install.packages('keyring', method='wget', quiet=T, verbose=F)"
RUN R -e "BiocManager::install('rhdf5')"