##// END OF EJS Templates
Instructions inside the Dockerfile
Kyle Kelley -
Show More
@@ -1,31 +1,35 b''
1 # Designed to be run as
2 #
3 # docker run -it -p 9999:8888 ipython/latest
4
1 5 FROM ipython/scipystack
2 6
3 7 MAINTAINER IPython Project <ipython-dev@scipy.org>
4 8
5 9 ADD . /srv/ipython/
6 10 WORKDIR /srv/ipython/
7 11
8 12 RUN pip2 install fabric
9 13 RUN pip3 install jsonschema jsonpointer fabric
10 14
11 15 RUN pip2 install .
12 16 RUN pip3 install .
13 17
14 18 EXPOSE 8888
15 19
16 20 RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
17 21 RUN chmod a+x /usr/local/bin/notebook.sh
18 22
19 23 RUN useradd -m -s /bin/bash jupyter
20 24
21 25 USER jupyter
22 26 ENV HOME /home/jupyter
23 27 ENV SHELL /bin/bash
24 28 ENV USER jupyter
25 29
26 30 WORKDIR /home/jupyter/
27 31
28 32 RUN ipython2 kernelspec install-self
29 33 RUN ipython3 kernelspec install-self
30 34
31 35 CMD ["/usr/local/bin/notebook.sh"]
General Comments 0
You need to be logged in to leave comments. Login now