-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 1 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
FROM rocker/verse:latest
MAINTAINER Luuk van der Meer <[email protected]>
# -----------------------------------
# INSTALL GEOSPATIAL SYSTEM LIBARIES
# -----------------------------------
RUN apt -y update && apt -y upgrade && apt -y autoremove
# Install geospatial system libraries
# Use the Ubuntugis PPA to get more up-to-date versions
RUN apt -y install software-properties-common
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && apt -y update
RUN apt -y install gdal-bin libgdal-dev libgeos-dev proj-bin libproj-dev libudunits2-dev
# ------------------------------
# INSTALL ADDITIONAL R PACKAGES
# ------------------------------
# Install geospatial packages that directly link to geospatial system libaries
# It seems they have to be installed from source to work correctly
RUN R -e "devtools::install_github('r-spatial/sf')"
RUN R -e "devtools::install_github('r-spatial/lwgeom')"
# Install other packages from CRAN
RUN install2.r --error \
tidyverse \
mapview \
sfheaders \
units \
here