File size: 646 Bytes
fd9c98b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM jupyter/scipy-notebook:python-3.10

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

ENV USER=jovyan

USER $USER

ENV HOME=/home/$USER \
	PATH=/home/$USER/.local/bin:$PATH

WORKDIR $HOME/app

COPY --chown=$USER . $HOME/app

ENV PYTHONPATH=$HOME/app

CMD jupyter-lab --ip 0.0.0.0 --port 7860 --no-browser --allow-root --ServerApp.token=${JUPYTER_TOKEN:=huggingface} --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" --ServerApp.disable_check_xsrf=True