From 2853e8800676edf299e69a2087a5116dbe97c59a Mon Sep 17 00:00:00 2001 From: Christoph Schranz Date: Wed, 26 Feb 2020 11:03:52 +0100 Subject: [PATCH] fixed adding jupyter config file --- .build/Dockerfile | 2 +- generate_Dockerfile.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.build/Dockerfile b/.build/Dockerfile index 222e9f3..ba461eb 100755 --- a/.build/Dockerfile +++ b/.build/Dockerfile @@ -429,10 +429,10 @@ RUN conda install -c conda-forge jupyter_contrib_nbextensions && \ jupyter nbextension enable codefolding/main RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker - RUN fix-permissions /home/$NB_USER # Switch back to jovyan to avoid accidental container runs as root USER $NB_UID +# Copy jupyter_notebook_config.json COPY jupyter_notebook_config.json /etc/jupyter/ diff --git a/generate_Dockerfile.sh b/generate_Dockerfile.sh index 5d3cd21..8b84a31 100755 --- a/generate_Dockerfile.sh +++ b/generate_Dockerfile.sh @@ -73,9 +73,10 @@ cat src/Dockerfile.usefulpackages >> $DOCKERFILE cp -r extra/Getting_Started data chmod -R 755 data/ -# Copying config and fix permissions +# Copying config cp src/jupyter_notebook_config.json .build/ echo >> $DOCKERFILE +echo "# Copy jupyter_notebook_config.json" >> $DOCKERFILE echo "COPY jupyter_notebook_config.json /etc/jupyter/" >> $DOCKERFILE #cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) .