Show More
@@ -0,0 +1,28 b'' | |||
|
1 | FROM ipython/scipystack | |
|
2 | ||
|
3 | MAINTAINER IPython Project <ipython-dev@scipy.org> | |
|
4 | ||
|
5 | ADD . /srv/ipython/ | |
|
6 | WORKDIR /srv/ipython/ | |
|
7 | ||
|
8 | RUN pip2 install -e .[all] | |
|
9 | RUN pip3 install -e .[all] | |
|
10 | ||
|
11 | #RUN ipython2 kernelspec install-self | |
|
12 | #RUN ipython3 kernelspec install-self | |
|
13 | ||
|
14 | EXPOSE 8888 | |
|
15 | ||
|
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 | |
|
18 | ||
|
19 | RUN useradd -m -s /bin/bash jupyter | |
|
20 | ||
|
21 | USER jupyter | |
|
22 | ENV HOME /home/jupyter | |
|
23 | ENV SHELL /bin/bash | |
|
24 | ENV USER jupyter | |
|
25 | ||
|
26 | WORKDIR /home/jupyter/ | |
|
27 | ||
|
28 | CMD ["/usr/local/bin/notebook.sh"] |
General Comments 0
You need to be logged in to leave comments.
Login now