notebook/Dockerfile

36 lines
714 B
Docker
Raw Normal View History

2014-09-13 01:38:36 +08:00
# Designed to be run as
#
# docker run -it -p 9999:8888 ipython/latest
2014-09-13 00:46:41 +08:00
FROM ipython/scipystack
MAINTAINER IPython Project <ipython-dev@scipy.org>
ADD . /srv/ipython/
WORKDIR /srv/ipython/
2014-09-13 01:37:41 +08:00
RUN pip2 install fabric
RUN pip3 install jsonschema jsonpointer fabric
2014-09-13 00:46:41 +08:00
2014-09-13 01:37:41 +08:00
RUN pip2 install .
RUN pip3 install .
2014-09-13 00:46:41 +08:00
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/
2014-09-13 01:37:41 +08:00
RUN ipython2 kernelspec install-self
RUN ipython3 kernelspec install-self
2014-09-13 00:46:41 +08:00
CMD ["/usr/local/bin/notebook.sh"]