From 9ee2cbff11018233a0a4c08e7c1e025cfb30c205 Mon Sep 17 00:00:00 2001 From: mcrutch <51446717+mcrutch@users.noreply.github.com> Date: Thu, 17 Aug 2023 11:12:44 -0400 Subject: [PATCH] Add requirements.txt for build so we can preserve state of build (#31) --- base-notebook/Dockerfile | 8 +------- base-notebook/conf/etc/requirements.txt | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 base-notebook/conf/etc/requirements.txt diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index c42798f..870551f 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -14,13 +14,7 @@ RUN apt-get update && apt-get -yq dist-upgrade && \ less \ vim && \ rm -rf /var/lib/apt/lists/* && \ - pip install --no-cache-dir \ - ipydeps \ - jupyterlab_nbgallery \ - jupyter_nbgallery \ - ipywidgets \ - jupyter_console \ - voila && \ + pip install --no-cache-dir -r /etc/requirements.txt && \ jupyter labextension disable @jupyterlab_nbgallery/autodownload && \ jupyter labextension disable @jupyterlab_nbgallery/instrumentation && \ echo '######################################## nbgallery configuration' && \ diff --git a/base-notebook/conf/etc/requirements.txt b/base-notebook/conf/etc/requirements.txt new file mode 100644 index 0000000..97e275b --- /dev/null +++ b/base-notebook/conf/etc/requirements.txt @@ -0,0 +1,7 @@ +ipydeps==2020.240.0 +ipywidgets==8.1.0 +jupyter-console==6.6.3 +jupyter-nbgallery==3.0.0 +jupyterlab_nbgallery==3.0.2 +voila==0.5.0 +