mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-18 14:10:26 +08:00
Dockerfile: Add a basic jupyter notebook profile. Allow for IPs from anywhere to connect by adding this into the the jupyter notebook profile.
This commit is contained in:
parent
2ab4fb6384
commit
4157b176e4
@ -92,10 +92,14 @@ RUN pip2 install --no-cache-dir mock nose requests testpath && \
|
||||
pip2 uninstall -y funcsigs mock nose pbr requests six testpath && \
|
||||
pip3 uninstall -y nose requests testpath
|
||||
|
||||
# Add a notebook profile.
|
||||
RUN mkdir -p -m 700 /root/.jupyter/ && \
|
||||
echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py
|
||||
|
||||
VOLUME /notebooks
|
||||
WORKDIR /notebooks
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
ENTRYPOINT ["tini", "--"]
|
||||
CMD ["jupyter", "notebook", "--ip=*"]
|
||||
CMD ["jupyter", "notebook"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user