more jupyter
All checks were successful
All checks were successful
This commit is contained in:
parent
2eb3928422
commit
12195ef1a9
2 changed files with 14 additions and 1 deletions
|
|
@ -11,7 +11,10 @@ VOLUME ["/opt/notebooks"]
|
|||
EXPOSE 80
|
||||
|
||||
# Start jupyter on port 80 and keep logs in /root/jupyter.log
|
||||
ENTRYPOINT ["/bin/bash", "-c", "/opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=80 --no-browser --allow-root > /root/jupyter.log 2>&1"]
|
||||
COPY start.sh /usr/local/bin/start.sh
|
||||
RUN chmod +x /usr/local/bin/start.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/start.sh"]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
10
containers/jupyter/start.sh
Normal file
10
containers/jupyter/start.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Add more services here if needed, then exec the main one last
|
||||
exec /opt/conda/bin/jupyter notebook \
|
||||
--notebook-dir=/opt/notebooks \
|
||||
--ip='*' \
|
||||
--port=80 \
|
||||
--no-browser \
|
||||
--allow-root
|
||||
Loading…
Add table
Add a link
Reference in a new issue