deagar commited on
Commit
72dea56
·
1 Parent(s): 4ba94d8

changes to allow iframing of jupyter server

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -7
Dockerfile CHANGED
@@ -34,10 +34,14 @@ USER $NB_UID
34
  EXPOSE 8888
35
 
36
  # Run Jupyter Notebook, disabling token & password
37
- CMD ["start.sh", "jupyter", "notebook", \
38
- "--ip=0.0.0.0", \
39
- "--port=8888", \
40
- "--no-browser", \
41
- "--NotebookApp.token=''", \
42
- "--NotebookApp.password=''"]
43
-
 
 
 
 
 
34
  EXPOSE 8888
35
 
36
  # Run Jupyter Notebook, disabling token & password
37
+ CMD ["start.sh", "jupyter", "notebook",
38
+ "--ip=0.0.0.0",
39
+ "--port=8888",
40
+ "--no-browser",
41
+ "--NotebookApp.token=''",
42
+ "--NotebookApp.password=''",
43
+ "--NotebookApp.allow_origin='*'",
44
+ "--NotebookApp.disable_check_xsrf='True'",
45
+ "--NotebookApp.allow_remote_access=True",
46
+ "--NotebookApp.tornado_settings={'headers': {'Content-Security-Policy': \"frame-ancestors *\", 'X-Frame-Options': 'ALLOWALL'}}"
47
+ ]