File size: 956 Bytes
adf79d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e4b361a
 
 
 
adf79d4
 
e4b361a
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
34
35
36
FROM debian:latest AS puppy

# prep
RUN apt-get update \
    && apt-get install -y curl \
    && apt-get clean
RUN useradd -m -u 1000 user
USER user

ENV PATH=/home/user/.pixi/bin:$PATH
RUN mkdir $HOME/puppy
WORKDIR $HOME/puppy

# install puppy
RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.13
RUN pup
RUN pixi add jupyter rdkit
RUN pup list

EXPOSE 7860

ENV JUPYTER_TOKEN=''

# https://huggingface.co/spaces/SpacesExamples/jupyterlab/blob/main/start_server.sh
CMD pixi run jupyter-lab \
  --ip 0.0.0.0 \
  --port 7860 \
  --no-browser \
  --allow-root \
  --LabApp.news_url=None \
  --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
  --ServerApp.token='' \
  --ServerApp.password='' \
  --ServerApp.cookie_options='{"SameSite": "None", "Secure": True}' \
  --ServerApp.disable_check_xsrf=True \
  --ServerApp.tornado_settings='{"headers": {"Content-Security-Policy": "frame-ancestors *"}}'