Spaces:
Build error
Build error
osanseviero
commited on
Commit
·
fd7913f
1
Parent(s):
cf540bd
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -12,23 +12,21 @@ WORKDIR /.local
|
|
12 |
WORKDIR /.jupyter
|
13 |
RUN chown 1000:1000 /.local
|
14 |
RUN chown 1000:1000 /.jupyter
|
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 |
|
33 |
|
34 |
-
|
|
|
12 |
WORKDIR /.jupyter
|
13 |
RUN chown 1000:1000 /.local
|
14 |
RUN chown 1000:1000 /.jupyter
|
|
|
15 |
EXPOSE 7860
|
16 |
|
17 |
RUN mkdir -p /root/.ipython/profile_default/
|
18 |
RUN chown 1000:1000 /root/.ipython/profile_default/
|
19 |
|
20 |
RUN (echo "c = get_config()" && \
|
21 |
+
echo "headers = {'Content-Security-Policy': 'frame-ancestors self https://huggingface.co/spaces/osanseviero/jupyter'}" && \
|
22 |
echo "c.NotebookApp.allow_origin = '*'" && \
|
23 |
+
echo "c.NotebookApp.token = ''" && \
|
24 |
echo "c.NotebookApp.allow_credentials = True" && \
|
25 |
echo "c.NotebookApp.tornado_settings = {'headers': headers}" && \
|
|
|
26 |
> /root/.ipython/profile_default/ipython_notebook_config.py
|
27 |
|
28 |
|
29 |
+
CMD ["jupyter-lab","--ip=0.0.0.0", "--port=7860", "--no-browser","--allow-root", "--ServerApp.tornado_settings=c.NotebookApp.token='test'"]
|
30 |
|
31 |
|
32 |
|
|