jupy-lab / entrypoint.sh
Ramses II
auto msg
55bf45f
raw
history blame
468 Bytes
#!/bin/bash
# Read the JupyterLab token from the HF secret
#JUPYTERLAB_TOKEN=$(cat /run/secrets/JUPYTER_TOKEN)
# Start JupyterLab in the background
jupyter lab --ip=0.0.0.0 --port=${JUPYTERLAB_PORT} --no-browser --allow-root --NotebookApp.base_url=/jupyter --NotebookApp.token=${JUPYTERLAB_TOKEN} &
# Ensure the Nginx PID file is writable
touch /tmp/nginx.pid
chmod 644 /tmp/nginx.pid
# Start Nginx in the foreground
nginx -g "daemon off;" -c /etc/nginx/nginx.conf