mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Workaround limitations in Docker Hub
This commit is contained in:
parent
89b4ef2660
commit
8b61460bed
@ -32,6 +32,10 @@ RUN chmod a+x /usr/local/bin/notebook.sh
|
||||
# jupyter is our user
|
||||
RUN useradd -m -s /bin/bash jupyter
|
||||
|
||||
# Register each kernel (Python 2.7.x, Python 3.4.x)
|
||||
RUN sudo -E -H -u jupyter ipython2 kernelspec install-self
|
||||
RUN sudo -E -H -u jupyter ipython3 kernelspec install-self
|
||||
|
||||
USER jupyter
|
||||
ENV HOME /home/jupyter
|
||||
ENV SHELL /bin/bash
|
||||
@ -39,8 +43,4 @@ ENV USER jupyter
|
||||
|
||||
WORKDIR /home/jupyter/
|
||||
|
||||
# Register each kernel (Python 2.7.x, Python 3.4.x)
|
||||
RUN su - jupyter -c "ipython2 kernelspec install-self"
|
||||
RUN su - jupyter -c "ipython3 kernelspec install-self"
|
||||
|
||||
CMD ["/usr/local/bin/notebook.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user