forked from inbo/lifewatch-meeting-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (15 loc) · 564 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# see https://github.com/binder-examples/dockerfile-r/blob/master/Dockerfile
FROM rocker/binder:3.4.2
## Copies your repo files into the Docker Container
USER root
COPY . ${HOME}
RUN chown -R ${NB_USER} ${HOME}
## Become normal user again
USER ${NB_USER}
## Run an install.R script, if it exists.
RUN if [ -f install.R ]; then R --quiet -f install.R; fi
#Custom installs for these tutorials
RUN R --quiet -e "devtools::install_github('inbo/wateRinfo')"
RUN R --quiet -e "install.packages(c('ggmap', 'leaflet'))"
RUN R --quiet -e "install.packages('rgbif')"