1
+ # Labup/Python-xxx Base kernel 19.06 to support Intel MKL
2
+
3
+ ## Base kernel Intel Distributed Python 2019.04 with Conda & Ubuntu 18.04
4
+ ## Support Intel MKL 19.04
5
+ ## Support TF-hub 0.5.0
6
+ ## Support OpenCV 4.1.0
7
+ ## Support Jupyter notebook extension
8
+
9
+ FROM continuumio/miniconda3:4.5.4
10
+
11
+ RUN apt update -y && \
12
+ curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
13
+ apt install -y software-properties-common && \
14
+ apt install -y --no-install-recommends \
15
+ apt-transport-https \
16
+ ca-certificates \
17
+ curl \
18
+ wget \
19
+ gnupg2 \
20
+ libexpat-dev
21
+
22
+ # Install Jupyter notebook logo
23
+ RUN mkdir -p /home/work/.jupyter/custom
24
+ COPY policy.yml /etc/backend.ai/jail/policy.yml
25
+
26
+ WORKDIR /usr/local
27
+
28
+ RUN conda config --add channels intel && \
29
+ conda install -y -q intelpython3_full=2019.4 python=3 && \
30
+ conda install -c conda-forge nodejs && \
31
+ conda install -c conda-forge opencv && \
32
+ conda install -c conda-forge tensorflow-hub==0.5.0 && \
33
+ conda install -c conda-forge tf2onnx && \
34
+ conda install -c conda-forge jupyterlab && \
35
+ conda install -c conda-forge jupyterthemes && \
36
+ conda install -c conda-forge ipywidgets && \
37
+ conda install -c conda-forge jupyter_contrib_nbextensions && \
38
+ conda install -c conda-forge jupyter_nbextensions_configurator && \
39
+ conda clean --all && \
40
+ rm -rf /root/.cache && \
41
+ rm -f /tmp/*.whl
42
+
43
+
44
+ # Jupyter notebook extension
45
+ RUN mkdir -p /home/work/.jupyter/nbextension
46
+ WORKDIR /home/work/.jupyter/nbextension
47
+
48
+ RUN jupyter nbextensions_configurator enable && \
49
+ jupyter contrib nbextension install && \
50
+ jupyter nbextension enable --py --sys-prefix widgetsnbextension && \
51
+ jupyter contrib nbextension install && \
52
+ jupyter serverextension enable --py jupyterlab --sys-prefix && \
53
+ jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
54
+ git clone https://github.com/lambdalisue/jupyter-vim-binding vim_binding && \
55
+ jupyter nbextension enable /home/work/.jupyter/nbextension/vim_binding/vim_binding
56
+
57
+ WORKDIR /home/work
0 commit comments