-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile_ubuntugis_unstable
28 lines (28 loc) · 1.19 KB
/
Dockerfile_ubuntugis_unstable
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
FROM rocker/geospatial:latest
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
vim \
wget \
ca-certificates \
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter3.5" \
&& add-apt-repository --enable-source --yes "ppa:marutter/c2d4u3.5" \
&& add-apt-repository --enable-source --yes "ppa:ubuntugis/ubuntugis-unstable"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libudunits2-dev libgdal-dev libgeos-dev libproj-dev liblwgeom-dev
# install the r-spatial stack linking to new OSGeo pkgs
RUN R -e "install.packages(c('sf', 'lwgeom', 'rgdal', 'sp', 'stars'))"
RUN R -e "remotes::install_github('geocompr/geocompkg')"
RUN su rstudio && \
cd /home/rstudio && \
wget https://github.com/geocompx/geocompr/archive/main.zip && \
unzip main.zip && \
mv geocompr-main /home/rstudio/geocompr && \
cd geocompr && \
make html
RUN chown -Rv rstudio /home/rstudio/geocompr
# other options (illustrative)
# RUN apt-get update && \
# set repos to CRAN to allow package updates
# echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')" >> /usr/local/lib/R/etc/Rprofile.site