Spaces:
Build error
Build error
FROM continuumio/miniconda3:4.10.3p1 | |
RUN conda install \ | |
xarray \ | |
netCDF4 \ | |
bottleneck \ | |
numpy \ | |
pandas \ | |
matplotlib \ | |
jupyterlab | |
WORKDIR /.local | |
WORKDIR /.jupyter | |
RUN chown 1000:1000 /.local | |
RUN chown 1000:1000 /.jupyter | |
EXPOSE 7860 | |
RUN mkdir -p /root/.ipython/profile_default/ | |
RUN chown 1000:1000 /root/.ipython/profile_default/ | |
RUN (echo "c = get_config()" && \ | |
echo "headers = {'Content-Security-Policy': 'frame-ancestors self https://huggingface.co/spaces/osanseviero/jupyter'}" && \ | |
echo "c.NotebookApp.allow_origin = '*'" && \ | |
echo "c.NotebookApp.token = ''" && \ | |
echo "c.NotebookApp.allow_credentials = True" && \ | |
echo "c.NotebookApp.tornado_settings = {'headers': headers}" && \ | |
> /root/.ipython/profile_default/ipython_notebook_config.py | |
CMD ["jupyter-lab","--ip=0.0.0.0", "--port=7860", "--no-browser","--allow-root", "--ServerApp.tornado_settings=c.NotebookApp.token='test'"] | |