pup-py commited on
Commit
309d99c
·
verified ·
1 Parent(s): 300c1cd

settings from Lab Spaces template

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -19,5 +19,16 @@ RUN pup add rawr requests
19
  RUN pup list
20
 
21
  EXPOSE 7860
22
- CMD pixi run jupyter lab --ip=0.0.0.0 --port=7860 --no-browser \
 
 
 
 
 
 
 
 
 
 
 
23
  --PasswordIdentityProvider.hashed_password='argon2:$argon2id$v=19$m=10240,t=10,p=8$r/6qMnrYrVBhhnzO4mNgqQ$uDWGIeGNu9Wfyscoq8gJ+WUF5lXX+BJVLrIRtKJGWNQ'
 
19
  RUN pup list
20
 
21
  EXPOSE 7860
22
+
23
+ # https://huggingface.co/spaces/SpacesExamples/jupyterlab/blob/main/start_server.sh
24
+ CMD pixi run jupyter-lab \
25
+ --ip 0.0.0.0 \
26
+ --port 7860 \
27
+ --no-browser \
28
+ --allow-root \
29
+ --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
30
+ --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
31
+ --ServerApp.disable_check_xsrf=True \
32
+ --LabApp.news_url=None \
33
+ --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
34
  --PasswordIdentityProvider.hashed_password='argon2:$argon2id$v=19$m=10240,t=10,p=8$r/6qMnrYrVBhhnzO4mNgqQ$uDWGIeGNu9Wfyscoq8gJ+WUF5lXX+BJVLrIRtKJGWNQ'