-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (40 loc) · 1.34 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM rocker/binder:4.2.0
## Declares build arguments
ARG NB_USER
ARG NB_UID
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/* \
&& wget -qO- \
"https://yihui.org/tinytex/install-unx.sh" | \
sh -s - --admin --no-path \
&& mv ~/.TinyTeX /opt/TinyTeX \
&& /opt/TinyTeX/bin/*/tlmgr path add \
&& tlmgr install metafont mfware inconsolata tex ae parskip listings pgf preview grfext \
&& tlmgr install standalone luatex85 pgfplots\
&& tlmgr path add \
&& chown -R root:staff /opt/TinyTeX \
&& chmod -R g+w /opt/TinyTeX \
&& chmod -R g+wx /opt/TinyTeX/bin \
; fi
RUN sed -i 's/256MiB/2GiB/' /etc/ImageMagick-6/policy.xml
RUN pip install --quiet --no-cache-dir \
RISE \
plotly \
rpy2 \
pandas \
scipy \
wordcloud \
cufflinks \
kaleido
USER ${NB_USER}
RUN git clone https://github.com/topepo/FES.git
RUN git clone https://github.com/clauswilke/dataviz.git
## Run and install.R script, if it exists.
RUN if [ -f install.R ]; then R --quiet -f install.R; fi