mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Dockerfile to track the latest master
This commit is contained in:
parent
684d739d92
commit
70f63744f2
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM ipython/scipystack
|
||||
|
||||
MAINTAINER IPython Project <ipython-dev@scipy.org>
|
||||
|
||||
ADD . /srv/ipython/
|
||||
WORKDIR /srv/ipython/
|
||||
|
||||
RUN pip2 install -e .[all]
|
||||
RUN pip3 install -e .[all]
|
||||
|
||||
#RUN ipython2 kernelspec install-self
|
||||
#RUN ipython3 kernelspec install-self
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
|
||||
RUN chmod a+x /usr/local/bin/notebook.sh
|
||||
|
||||
RUN useradd -m -s /bin/bash jupyter
|
||||
|
||||
USER jupyter
|
||||
ENV HOME /home/jupyter
|
||||
ENV SHELL /bin/bash
|
||||
ENV USER jupyter
|
||||
|
||||
WORKDIR /home/jupyter/
|
||||
|
||||
CMD ["/usr/local/bin/notebook.sh"]
|
Loading…
Reference in New Issue
Block a user