##// 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 FROM ipython/scipystack
5 FROM ipython/scipystack
2
6
3 MAINTAINER IPython Project <ipython-dev@scipy.org>
7 MAINTAINER IPython Project <ipython-dev@scipy.org>
4
8
5 ADD . /srv/ipython/
9 ADD . /srv/ipython/
6 WORKDIR /srv/ipython/
10 WORKDIR /srv/ipython/
7
11
8 RUN pip2 install fabric
12 RUN pip2 install fabric
9 RUN pip3 install jsonschema jsonpointer fabric
13 RUN pip3 install jsonschema jsonpointer fabric
10
14
11 RUN pip2 install .
15 RUN pip2 install .
12 RUN pip3 install .
16 RUN pip3 install .
13
17
14 EXPOSE 8888
18 EXPOSE 8888
15
19
16 RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
20 RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
17 RUN chmod a+x /usr/local/bin/notebook.sh
21 RUN chmod a+x /usr/local/bin/notebook.sh
18
22
19 RUN useradd -m -s /bin/bash jupyter
23 RUN useradd -m -s /bin/bash jupyter
20
24
21 USER jupyter
25 USER jupyter
22 ENV HOME /home/jupyter
26 ENV HOME /home/jupyter
23 ENV SHELL /bin/bash
27 ENV SHELL /bin/bash
24 ENV USER jupyter
28 ENV USER jupyter
25
29
26 WORKDIR /home/jupyter/
30 WORKDIR /home/jupyter/
27
31
28 RUN ipython2 kernelspec install-self
32 RUN ipython2 kernelspec install-self
29 RUN ipython3 kernelspec install-self
33 RUN ipython3 kernelspec install-self
30
34
31 CMD ["/usr/local/bin/notebook.sh"]
35 CMD ["/usr/local/bin/notebook.sh"]
General Comments 0
You need to be logged in to leave comments. Login now