Spaces:
Build error
Build error
osanseviero
commited on
Commit
·
3038173
1
Parent(s):
e51edd0
Update Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -15,4 +15,18 @@ RUN chown 1000:1000 /.jupyter
|
|
15 |
ENV JUPYTER_TOKEN=easy
|
16 |
EXPOSE 7860
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
CMD ["jupyter-lab","--ip=0.0.0.0", "--port=7860", "--no-browser","--allow-root"]
|
|
|
|
|
|
15 |
ENV JUPYTER_TOKEN=easy
|
16 |
EXPOSE 7860
|
17 |
|
18 |
+
RUN mkdir -p /root/.ipython/profile_default/
|
19 |
+
RUN chown 1000:1000 /root/.ipython/profile_default/
|
20 |
+
|
21 |
+
RUN (echo "c = get_config()" && \
|
22 |
+
echo "headers = {'Content-Security-Policy': 'frame-ancestors *'}" && \
|
23 |
+
echo "c.NotebookApp.allow_origin = '*'" && \
|
24 |
+
echo "c.NotebookApp.allow_credentials = True" && \
|
25 |
+
echo "c.NotebookApp.tornado_settings = {'headers': headers}" && \
|
26 |
+
echo "c.NotebookApp.open_browser = False") && \
|
27 |
+
> /root/.ipython/profile_default/ipython_notebook_config.py
|
28 |
+
|
29 |
+
|
30 |
CMD ["jupyter-lab","--ip=0.0.0.0", "--port=7860", "--no-browser","--allow-root"]
|
31 |
+
|
32 |
+
|