From 70f63744f2f56ce7cb459733360e8d9d54447c8e Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Fri, 12 Sep 2014 16:46:41 +0000 Subject: [PATCH] Dockerfile to track the latest master --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..65fc98e54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM ipython/scipystack + +MAINTAINER IPython Project + +ADD . /srv/ipython/ +WORKDIR /srv/ipython/ + +RUN pip2 install -e .[all] +RUN pip3 install -e .[all] + +#RUN ipython2 kernelspec install-self +#RUN ipython3 kernelspec install-self + +EXPOSE 8888 + +RUN echo "#!/bin/bash\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 + +RUN useradd -m -s /bin/bash jupyter + +USER jupyter +ENV HOME /home/jupyter +ENV SHELL /bin/bash +ENV USER jupyter + +WORKDIR /home/jupyter/ + +CMD ["/usr/local/bin/notebook.sh"]