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) .