-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 1.07 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
# get the base image, the rocker/verse has R, RStudio and pandoc
FROM rocker/geospatial:4.0.2
# required
MAINTAINER Victor Maus <[email protected]>
COPY . /mininglucc
RUN . /etc/environment \
# Install linux dependencies here
# e.g. need this for ggforce::geom_sina
&& sudo apt-get update \
&& sudo apt-get install libudunits2-dev -y \
# install R packages dependencies
&& install2.r --error \
tidyverse \
bookdown \
git2r \
fastcluster \
progress \
remotes \
here \
pangaear \
&& R -e "remotes::install_version('sf', version = '0.9-6', dependencies= T)" \
&& R -e "remotes::install_version('lwgeom', version = '0.2-5', dependencies= T)" \
&& R -e "remotes::install_version('dplyr', version = '1.0.2', dependencies= T)"
# build compendium package and render the scripts
RUN R -e "devtools::install('/mininglucc', dep=TRUE)" \
&& R -e "rmarkdown::render('/mininglucc/analysis/00-data-preparation.Rmd')" #\
#&& R -e "rmarkdown::render('/mininglucc/analysis/01-mining-clusters.Rmd')" # 01-* crashes probably because of the parallel processing