Notebook_Template / Dockerfile
andreasmartin's picture
Create Dockerfile
fd9c98b
raw
history blame contribute delete
646 Bytes
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