Spaces:
Build error
Build error
Commit
·
fd9c98b
1
Parent(s):
aa9ba50
Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM jupyter/scipy-notebook:python-3.10
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
+
|
| 7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
+
|
| 9 |
+
ENV USER=jovyan
|
| 10 |
+
|
| 11 |
+
USER $USER
|
| 12 |
+
|
| 13 |
+
ENV HOME=/home/$USER \
|
| 14 |
+
PATH=/home/$USER/.local/bin:$PATH
|
| 15 |
+
|
| 16 |
+
WORKDIR $HOME/app
|
| 17 |
+
|
| 18 |
+
COPY --chown=$USER . $HOME/app
|
| 19 |
+
|
| 20 |
+
ENV PYTHONPATH=$HOME/app
|
| 21 |
+
|
| 22 |
+
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
|