Show More
@@ -32,6 +32,10 b' RUN chmod a+x /usr/local/bin/notebook.sh' | |||||
32 | # jupyter is our user |
|
32 | # jupyter is our user | |
33 | RUN useradd -m -s /bin/bash jupyter |
|
33 | RUN useradd -m -s /bin/bash jupyter | |
34 |
|
34 | |||
|
35 | # Register each kernel (Python 2.7.x, Python 3.4.x) | |||
|
36 | RUN sudo -E -H -u jupyter ipython2 kernelspec install-self | |||
|
37 | RUN sudo -E -H -u jupyter ipython3 kernelspec install-self | |||
|
38 | ||||
35 | USER jupyter |
|
39 | USER jupyter | |
36 | ENV HOME /home/jupyter |
|
40 | ENV HOME /home/jupyter | |
37 | ENV SHELL /bin/bash |
|
41 | ENV SHELL /bin/bash | |
@@ -39,8 +43,4 b' ENV USER jupyter' | |||||
39 |
|
43 | |||
40 | WORKDIR /home/jupyter/ |
|
44 | WORKDIR /home/jupyter/ | |
41 |
|
45 | |||
42 | # Register each kernel (Python 2.7.x, Python 3.4.x) |
|
|||
43 | RUN su - jupyter -c "ipython2 kernelspec install-self" |
|
|||
44 | RUN su - jupyter -c "ipython3 kernelspec install-self" |
|
|||
45 |
|
||||
46 | CMD ["/usr/local/bin/notebook.sh"] |
|
46 | CMD ["/usr/local/bin/notebook.sh"] |
General Comments 0
You need to be logged in to leave comments.
Login now