-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
28 lines (22 loc) · 1.11 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
FROM jupyter/scipy-notebook:latest
USER root
RUN pip install --no-cache jupyter_nbextensions_configurator \
git+https://github.com/NII-cloud-operation/Jupyter-LC_nblineage.git
COPY . /tmp/nbtags
RUN pip install --no-cache /tmp/nbtags
RUN mkdir /opt/nbtags && \
cp /tmp/nbtags/example/config.py.template \
/opt/nbtags/config.py.template && \
mkdir -p /usr/local/bin/before-notebook.d && \
cp /tmp/nbtags/example/*.sh /usr/local/bin/before-notebook.d/ && \
chmod +x /usr/local/bin/before-notebook.d/*.sh
USER $NB_UID
RUN jupyter nbclassic-extension install --py jupyter_nbextensions_configurator --user && \
jupyter nbclassic-extension enable --py jupyter_nbextensions_configurator --user && \
jupyter nbclassic-serverextension enable --py jupyter_nbextensions_configurator --user && \
jupyter nbclassic-extension install --py --user nbtags && \
jupyter nbclassic-serverextension enable --py --user nbtags && \
jupyter nbclassic-extension enable --py --user nbtags && \
jupyter nblineage quick-setup --user
# Make classic notebook the default
ENV DOCKER_STACKS_JUPYTER_CMD=nbclassic