Jupyter mounted on permanent storage by default if activated (#4)
Browse files- Jupyter mounted on permanent storage by default if activated (2d23c5b1bb907c88ff42576391cbfb3212d65452)
- Update Dockerfile (b4533e125821d978f852cb6c7980072151471d00)
- Update start_server.sh (f6684367e403879a5d76ddb23f7f0b0b7a994a1a)
Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>
Files changed (2)
70 unmodified lines71727374757670 unmodified linesRUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \bash /root/on_startup.sh######################################## End root user section#######################################70 unmodified lines717273747576777870 unmodified linesRUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \bash /root/on_startup.shRUN mkdir /data && chown user:user /data######################################## End root user section#######################################
123456784 unmodified lines13141516#!/bin/bashJUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"jupyter-lab \--ip 0.0.0.0 \--port 7860 \4 unmodified lines--ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \--ServerApp.disable_check_xsrf=True \--LabApp.news_url=None \--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate"123456789104 unmodified lines1516171819#!/bin/bashJUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"NOTEBOOK_DIR="/data"jupyter-lab \--ip 0.0.0.0 \--port 7860 \4 unmodified lines--ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \--ServerApp.disable_check_xsrf=True \--LabApp.news_url=None \--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \--notebook-dir=$NOTEBOOK_DIR
Dockerfile+2
start_server.sh+5-2