Workaround limitations in Docker Hub

This commit is contained in:
Kyle Kelley 2014-09-14 00:55:30 +00:00 committed by MinRK
parent 89b4ef2660
commit 8b61460bed

View File

@ -32,6 +32,10 @@ RUN chmod a+x /usr/local/bin/notebook.sh
# jupyter is our user
RUN useradd -m -s /bin/bash jupyter
# Register each kernel (Python 2.7.x, Python 3.4.x)
RUN sudo -E -H -u jupyter ipython2 kernelspec install-self
RUN sudo -E -H -u jupyter ipython3 kernelspec install-self
USER jupyter
ENV HOME /home/jupyter
ENV SHELL /bin/bash
@ -39,8 +43,4 @@ ENV USER jupyter
WORKDIR /home/jupyter/
# Register each kernel (Python 2.7.x, Python 3.4.x)
RUN su - jupyter -c "ipython2 kernelspec install-self"
RUN su - jupyter -c "ipython3 kernelspec install-self"
CMD ["/usr/local/bin/notebook.sh"]