mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
More workarounds
This commit is contained in:
parent
f79edfc290
commit
66bdfded98
@ -26,18 +26,12 @@ RUN pip3 install .
|
||||
EXPOSE 8888
|
||||
|
||||
# Generate a wrapper script
|
||||
RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh
|
||||
RUN echo "#!/bin/bash\nipython2 kernelspec install-self\nipython3 kernelspec install-self\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
|
||||
|
||||
# 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
|
||||
|
||||
RUN sudo chown jupyter:jupyter /home/jupyter -R
|
||||
|
||||
USER jupyter
|
||||
ENV HOME /home/jupyter
|
||||
ENV SHELL /bin/bash
|
||||
|
Loading…
Reference in New Issue
Block a user