-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.Binder431
55 lines (46 loc) · 1.67 KB
/
Dockerfile.Binder431
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM rocker/binder:4.3.1
# docker build -t rocker/mydvenv:4.3.1 -f Dockerfile.Binder431 .
# docker run --rm -ti -e JUPYTER_TOKEN=****** -e SHELL=/bin/bash -p 8888:8888 rocker/mydvenv:4.3.1
## Declares build arguments
ARG NB_USER
ARG NB_UID
ENV TEXMFHOME=$HOME/.cache/texlive
ENV TEXMFVAR=$HOME/.cache/texlive/texmf-var
COPY --chown=${NB_USER} . ${HOME}
ENV DEBIAN_FRONTEND=noninteractive
USER root
RUN echo "Checking for 'apt.txt'..." \
; if test -f "apt.txt" ; then \
apt-get update --fix-missing > /dev/null\
&& xargs -a apt.txt apt-get install --yes \
&& apt-get clean > /dev/null \
&& rm -rf /var/lib/apt/lists/* \
&& tlmgr install metafont mfware inconsolata tex ae parskip listings pgf preview grfext \
&& tlmgr install standalone collection-luatex fontspec pgfplots collection-fontsrecommended \
&& tlmgr install infwarerr ltxcmds epstopdf-pkg kvdefinekeys kvoptions kvsetkeys \
&& chmod o+w /var/lib/texmf \
&& sed -i 's/256MiB/2GiB/' /etc/ImageMagick-6/policy.xml \
; fi
USER ${NB_USER}
RUN pip install --quiet --no-cache-dir \
RISE \
plotly \
rpy2 \
pandas \
scipy \
wordcloud \
cufflinks \
kaleido \
markdown \
ipyfilechooser \
appdirs \
sqlalchemy_utils
# fairly \
# jupyter-fairly \
RUN echo "rugplot alias ..." \
&& wget -P ~/rugplotcmd -q \
"https://raw.githubusercontent.com/rijksuniversiteit-groningen/docker-cds/master/dsmethods/rugplot/rugplots.R" \
&& chmod +x ~/rugplotcmd/rugplots.R \
&& echo "alias rugplot='~/rugplotcmd/rugplots.R'" >> ~/.bashrc
## Run and install.R script, if it exists.
RUN if [ -f install.R ]; then R --quiet -f install.R; fi