diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a207ae88 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# start with the ropensci image including debian:testing, r-base, rocker/rstudio, rocker/hadleyverse +# https://hub.docker.com/r/rocker/ropensci/ +FROM rocker/ropensci:latest + +# maintainer handle +MAINTAINER "Stefan Metzger" eddy4R.info@gmail.com + +# install OS-side dependencies + + # update the list of available packages and their versions + RUN apt-get update + + # install dependencies + RUN apt-get install -y \ + # EBImage + fftw3 \ + fftw3-dev \ + libjpeg-dev \ + libtiff-dev \ + # REddyProc + libudunits2-0 \ + libudunits2-dev \ + libnetcdf-dev \ + udunits-bin + +# install the eddy4R packages via web-hosted installation script +RUN R -e 'source("https://www.dropbox.com/s/b9kosg2jr34w3lk/flow.inst.R?dl=1")' + +# provide read and write access for default R library location to Rstudio users +RUN chmod -R 777 /usr/local/lib/R/site-library