File size: 468 Bytes
511bc62
 
66030fa
55bf45f
da5c857
c0616b4
66030fa
511bc62
ecd62c6
 
 
 
c0616b4
66030fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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