-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
23 lines (16 loc) · 892 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
FROM jupyter/scipy-notebook:latest
USER root
RUN pip install --no-cache jupyter_nbextensions_configurator
COPY . /tmp/nbindex
RUN pip install --no-cache /tmp/nbindex
RUN mv /tmp/nbindex/example $HOME/ && chown $NB_USER -R $HOME/example && \
cp /tmp/nbindex/README.* $HOME/ && chown $NB_USER $HOME/README.*
RUN jupyter nbclassic-extension install --py jupyter_nbextensions_configurator --sys-prefix && \
jupyter nbclassic-extension enable --py jupyter_nbextensions_configurator --sys-prefix && \
jupyter nbclassic-serverextension enable --py jupyter_nbextensions_configurator --sys-prefix && \
jupyter nbclassic-extension install --py --sys-prefix notebook_index && \
jupyter nbclassic-extension enable --py --sys-prefix notebook_index && \
fix-permissions /home/$NB_USER
USER $NB_UID
# Make classic notebook the default
ENV DOCKER_STACKS_JUPYTER_CMD=nbclassic