Spaces:
Build error
Build error
File size: 955 Bytes
439722a d4b4670 ea16275 30a48d6 cb68436 8c71b74 92dc465 fc4d444 3038173 fd7913f 3038173 fd7913f 3038173 fc4d444 3038173 fd7913f 3038173 fc4d444 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
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'"]
|