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