fixed adding jupyter config file
This commit is contained in:
parent
d952ecfe0c
commit
52901ba767
@ -429,9 +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
|
||||||
|
|
||||||
# Copying config and fix permissions
|
|
||||||
COPY jupyter_notebook_config.json /etc/jupyter/
|
|
||||||
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 /etc/jupyter/
|
||||||
|
@ -72,7 +72,12 @@ cat src/Dockerfile.usefulpackages >> $DOCKERFILE
|
|||||||
# Copy the demo notebooks and change permissions
|
# Copy the demo notebooks and change permissions
|
||||||
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
|
||||||
cp src/jupyter_notebook_config.json .build/
|
cp src/jupyter_notebook_config.json .build/
|
||||||
|
echo >> $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) .
|
||||||
|
|
||||||
echo "GPU Dockerfile was generated sucessfully in file ${DOCKERFILE}."
|
echo "GPU Dockerfile was generated sucessfully in file ${DOCKERFILE}."
|
||||||
|
@ -40,8 +40,6 @@ 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
|
||||||
|
|
||||||
# Copying config and fix permissions
|
|
||||||
COPY jupyter_notebook_config.json /etc/jupyter/
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user