-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (15 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
# Install R Dependencies
RUN apt-get -qq update && \
apt-get -qq install --no-install-recommends build-essential gfortran devscripts wget software-properties-common dirmngr pandoc git qpdf
# Install R from CRAN
RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc && \
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" && \
apt-get -qq install --no-install-recommends r-base libgsl-dev libcairo2-dev
# Install R packages
RUN apt-get -qq install libcurl4-openssl-dev libxml2-dev libfontconfig1-dev libssl-dev libudunits2-dev libharfbuzz-dev libfribidi-dev \
libgdal-dev libgeos-dev libproj-dev libsqlite3-dev
RUN Rscript -e "install.packages(c('devtools', 'Rcpp', 'RcppArmadillo', 'sf', 'rcmdcheck', 'Cairo'), Ncpus = parallel::detectCores(), quiet = T)"
ENTRYPOINT [ "R" ]