fixed adding jupyter config file

This commit is contained in:
Christoph Schranz 2020-02-26 11:03:52 +01:00
parent 52901ba767
commit 2853e88006
2 changed files with 3 additions and 2 deletions

View File

@ -429,10 +429,10 @@ RUN conda install -c conda-forge jupyter_contrib_nbextensions && \
jupyter nbextension enable codefolding/main jupyter nbextension enable codefolding/main
RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker
RUN fix-permissions /home/$NB_USER RUN fix-permissions /home/$NB_USER
# Switch back to jovyan to avoid accidental container runs as root # Switch back to jovyan to avoid accidental container runs as root
USER $NB_UID USER $NB_UID
# Copy jupyter_notebook_config.json
COPY jupyter_notebook_config.json /etc/jupyter/ COPY jupyter_notebook_config.json /etc/jupyter/

View File

@ -73,9 +73,10 @@ cat src/Dockerfile.usefulpackages >> $DOCKERFILE
cp -r extra/Getting_Started data cp -r extra/Getting_Started data
chmod -R 755 data/ chmod -R 755 data/
# Copying config and fix permissions # Copying config
cp src/jupyter_notebook_config.json .build/ cp src/jupyter_notebook_config.json .build/
echo >> $DOCKERFILE echo >> $DOCKERFILE
echo "# Copy jupyter_notebook_config.json" >> $DOCKERFILE
echo "COPY jupyter_notebook_config.json /etc/jupyter/" >> $DOCKERFILE echo "COPY jupyter_notebook_config.json /etc/jupyter/" >> $DOCKERFILE
#cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) . #cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) .