forked from fmannhardt/course-applied-processmining
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (21 loc) · 811 Bytes
/
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
32
33
FROM rocker/geospatial:4.0.5 AS binder
LABEL org.label-schema.license="GPL-2.0" \
org.label-schema.vcs-url="https://github.com/rocker-org/rocker-versioned" \
org.label-schema.vendor="Rocker Project" \
maintainer="Carl Boettiger <[email protected]>"
ENV NB_USER=rstudio
COPY ./rocker /rocker_scripts
RUN /rocker_scripts/install_python.sh
RUN /rocker_scripts/install_binder.sh
CMD jupyter notebook --ip 0.0.0.0
USER ${NB_USER}
WORKDIR /home/${NB_USER}
## Use a tag instead of "latest" for reproducibility
FROM binder
COPY --chown=${NB_USER}:${NB_USER} . ${HOME}
## Run an install.R script, if it exists.
RUN if [ -f install.R ]; then R --quiet -f install.R; fi
RUN R --quiet -e "IRkernel::installspec()"
USER root
RUN apt-get update && apt-get -y install graphviz
USER ${NB_USER}