From 66bdfded98be8a291d94c1f2c5bf35248ce2d39b Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Sun, 14 Sep 2014 02:54:07 +0000 Subject: [PATCH] More workarounds --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dafb3756..1b5864ba0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,18 +26,12 @@ RUN pip3 install . EXPOSE 8888 # Generate a wrapper script -RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh +RUN echo "#!/bin/bash\nipython2 kernelspec install-self\nipython3 kernelspec install-self\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh 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 - -RUN sudo chown jupyter:jupyter /home/jupyter -R - USER jupyter ENV HOME /home/jupyter ENV SHELL /bin/bash