forked from Alice-Bob-SW/felis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 837 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (21 loc) · 837 Bytes
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
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
build-essential \
cmake \
ninja-build \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash jupyter
USER jupyter
WORKDIR /home/jupyter/app
COPY --chown=jupyter:jupyter pyproject.toml uv.lock ./
COPY --chown=jupyter:jupyter samples/ samples/
RUN uv sync --group jupyter --frozen
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
RUN useradd --create-home --shell /bin/bash jupyter
USER jupyter
WORKDIR /home/jupyter/app
COPY --from=builder --chown=jupyter:jupyter /home/jupyter/app /home/jupyter/app
EXPOSE 8888
CMD ["uv", "run", "--", "jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--NotebookApp.token=''"]