-
Notifications
You must be signed in to change notification settings - Fork 112
/
Dockerfile
67 lines (58 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM jupyter/scipy-notebook:137a295ff71b
LABEL maintainer="Luca De Feo <https://defeo.lu/>"
USER root
# APT packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
fonts-dejavu \
tzdata \
gfortran \
gcc \
scilab \
pari-gp \
libpari-dev \
sagemath \
sagemath-jupyter \
libgmp-dev \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# Conda packages
# Sage conflicts with the latest jupyterhub, thus we must relax the pinning
RUN conda install --quiet --yes \
'r-base=3.4.1' \
'r-irkernel=0.8*' \
'r-plyr=1.8*' \
'r-devtools=1.13*' \
'r-tidyverse=1.1*' \
'r-shiny=1.0*' \
'r-rmarkdown=1.8*' \
'r-forecast=8.2*' \
'r-rsqlite=2.0*' \
'r-reshape2=1.4*' \
'r-nycflights13=0.2*' \
'r-caret=6.0*' \
'r-rcurl=1.95*' \
'r-crayon=1.3*' \
'r-randomforest=4.6*' \
'r-htmltools=0.3*' \
'r-sparklyr=0.7*' \
'r-htmlwidgets=1.0*' \
'r-hexbin=1.27*' \
'jupyterhub' \
# 'sage=8.*' \
'julia=1.0*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
ENV CPATH=$CONDA_DIR/include
RUN pip install \
pari_jupyter \
# PySingular jupyter_kernel_singular \
scilab-kernel && \
fix-permissions $CONDA_DIR
# Fix SageMath kernel
USER root
RUN sed -i 's/"\/usr\/bin\/sage"/"env", "PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin", "\/usr\/bin\/sage"/' /usr/share/jupyter/kernels/sagemath/kernel.json
USER $NB_UID
# Add conda env hook
COPY ./conda-activate.sh /usr/local/bin/before-notebook.d/