Skip to content

Speed up build times of nootebook

Original time to build:

hub-3.1.1: Pulling from jupyter/datascience-notebook
Digest: sha256:0d13ebe3675cb874eeafad79c2777e0fafd401c5907f85b2302a3e6b7bc799da
Status: Image is up to date for jupyter/datascience-notebook:hub-3.1.1
docker.io/jupyter/datascience-notebook:hub-3.1.1
[+] Building 4106.5s (24/24) FINISHED                                                                                                                                                                                                                               docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                          0.4s
 => => transferring dockerfile: 6.60kB                                                                                                                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                             0.2s
 => => transferring context: 2B                                                                                                                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/jupyter/datascience-notebook:hub-3.1.1                                                                                                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                                                                                             0.4s
 => => transferring context: 107B                                                                                                                                                                                                                                             0.0s
 => CACHED [internal] preparing inline document                                                                                                                                                                                                                               0.0s
 => [build  1/18] FROM docker.io/jupyter/datascience-notebook:hub-3.1.1                                                                                                                                                                                                       0.0s
 => CACHED [build  2/18] RUN mamba uninstall --yes     nomkl                                                                                                                                                                                                                  0.0s
 => [build  3/18] RUN mamba install --yes -c pytorch -c fastai -c lukepfister -c gurobi -c nvidia/label/cuda-11.6.2     nbgitpuller     jupyterlab-git     jupyterlab_latex     xeus-cling     r-essentials     black     seaborn     gurobi     pytables     mesa     sim  931.1s
 => [build  4/18] RUN python3 -m pip install --no-cache-dir install     rsome     scikit-cuda     nvidia-cudnn-cu11==8.6.0.163 tensorflow==2.13.*     keras                                                                                                                 208.4s
 => [build  5/18] WORKDIR /tmp                                                                                                                                                                                                                                                1.0s
 => [build  6/18] RUN yes | unminimize || true                                                                                                                                                                                                                             1315.1s
 => [build  7/18] RUN apt-get update && apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends --no-install-suggests --allow-unauthenticated     gnupg     man     manpages-posix     iproute2     inetutils-  209.1s
 => [build  8/18] COPY files/copy_home.sh /usr/local/bin/before-notebook.d/                                                                                                                                                                                                   1.1s
 => [build  9/18] COPY files/create_groups.sh /usr/local/bin/before-notebook.d/                                                                                                                                                                                               0.8s
 => [build 10/18] RUN fix-permissions /opt/conda && fix-permissions /home/jovyan                                                                                                                                                                                           1191.6s
 => [build 11/18] COPY <<EOF /opt/conda/share/jupyter/kernels/python3/kernel.json                                                                                                                                                                                             1.2s
 => [build 12/18] WORKDIR /home/jovyan                                                                                                                                                                                                                                        0.8s
 => [build 13/18] RUN jupyter labextension install @jupyterlab/latex && jupyter lab build         && jupyter lab clean         && jlpm cache clean          && npm cache clean --force         && rm -rf /home/jovyan/.node-gyp         && rm -rf /home/jovyan/.local       141.7s
 => [build 14/18] RUN conda config --set changeps1 False                                                                                                                                                                                                                      2.2s
 => [build 15/18] RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"                                                                                                                                                                             3.1s
 => [build 16/18] RUN echo 'if [ -d "work" ] && [ "$JUPYTERLAB_ADMIN_USER" != True ]; then  cd work; fi' >> /home/jovyan/.bashrc                                                                                                                                              1.6s
 => [build 17/18] RUN echo 'export LD_LIBRARY_PATH=/opt/conda/lib/python3.10/site-packages/nvidia/cudnn/lib:/opt/conda/lib/:$LD_LIBRARY_PATH/opt/conda/lib/python3.10/site-packages/nvidia/cudnn/lib:/opt/conda/lib/:$LD_LIBRARY_PATH' >> /home/jovyan/.bashrc                1.7s
 => [build 18/18] RUN date +%F > /home/jovyan/.container_build_date                                                                                                                                                                                                           1.5s
 => exporting to image                                                                                                                                                                                                                                                       92.4s
 => => exporting layers                                                                                                                                                                                                                                                      92.2s
 => => writing image sha256:e012473a7bd16c78bca94e74c610f4cb62902c26e4583c93e3ab3774c5931334                                                                                                                                                                                  0.0s
 => => naming to docker.io/library/datascience-notebook                                                                                                                                                                                                                       0.1s
Finished building datascience-notebook
Edited by Jonas Karlsson