mirror of
https://github.com/appelmar/gdalcubes.git
synced 2025-02-22 14:54:14 +01:00
18 lines
666 B
Docker
18 lines
666 B
Docker
FROM rocker/rstudio
|
|
LABEL maintainer="marius.appel@hs-bochum.de"
|
|
|
|
RUN apt update
|
|
RUN apt install -y libgdal-dev libcurl4-openssl-dev libnetcdf-dev libudunits2-dev gdal-bin libmagick++-dev pandoc
|
|
|
|
USER rstudio
|
|
RUN Rscript -e 'install.packages(c("stars","sf","magick","knitr", "rmarkdown", "tinytest", "av","lubridate","gifski", "BH", "ncdf4"))'
|
|
|
|
COPY --chown=rstudio:rstudio . /home/rstudio/gdalcubes
|
|
|
|
WORKDIR /home/rstudio/gdalcubes
|
|
RUN R CMD INSTALL .
|
|
|
|
USER root
|
|
# run e.g. with
|
|
# sudo docker build -t "appelmar/gdalcubes_demo" .
|
|
# sudo docker run -d --restart unless-stopped -p 8787:8787 -v $(pwd):/home/rstudio -e PASSWORD=PLEASECHANGE appelmar/gdalcubes_demo
|