Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +34 -0
Dockerfile
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:latest AS puppy
|
2 |
+
|
3 |
+
# prep
|
4 |
+
RUN apt-get update \
|
5 |
+
&& apt-get install -y curl \
|
6 |
+
&& apt-get clean
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
USER user
|
9 |
+
|
10 |
+
ENV PATH=/home/user/.pixi/bin:$PATH
|
11 |
+
RUN mkdir $HOME/puppy
|
12 |
+
WORKDIR $HOME/puppy
|
13 |
+
|
14 |
+
# install puppy
|
15 |
+
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.13
|
16 |
+
RUN pup
|
17 |
+
RUN pixi add jupyter rdkit
|
18 |
+
RUN pup list
|
19 |
+
|
20 |
+
EXPOSE 7860
|
21 |
+
|
22 |
+
ENV JUPYTER_TOKEN=''
|
23 |
+
|
24 |
+
# https://huggingface.co/spaces/SpacesExamples/jupyterlab/blob/main/start_server.sh
|
25 |
+
CMD pixi run jupyter-lab \
|
26 |
+
--ip 0.0.0.0 \
|
27 |
+
--port 7860 \
|
28 |
+
--no-browser \
|
29 |
+
--allow-root \
|
30 |
+
--ServerApp.cookie_options='{"SameSite": "None", "Secure": True}' \
|
31 |
+
--ServerApp.disable_check_xsrf=True \
|
32 |
+
--ServerApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}' \
|
33 |
+
--LabApp.news_url=None \
|
34 |
+
--LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate"
|