File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ## STAGE 1: base image
22ARG DOCKER_REGISTRY=ghcr.io
33ARG VERSION=latest
4- FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
4+ # substrate's gVisor (ateom) checkpoint/restore segfaults processes linked against trixie's newer glibc
5+ # use bookworm to align with the kagent-adk runtime image
6+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
57
68WORKDIR /app
79
@@ -11,6 +13,14 @@ RUN apt-get update && apt-get install -y \
1113 && rm -rf /var/lib/apt/lists/* \
1214 && apt-get clean
1315
16+ # this mirrors the kagent-adk's uv configuration and is needed to work on substrate
17+ # as gVisor checkpoint/restore segfaults the base image's system
18+ # CPython on restore and the standalone build survives. Both this and the bookworm base
19+ # are needed for BYO to work on substrate as this pins the base image to use a base image with glibc 2.36
20+ # where as the prvious base image python3.13-trixie-slim used glibc 2.41
21+ ENV UV_PYTHON_PREFERENCE=only-managed
22+ ENV UV_PYTHON_INSTALL_DIR=/python
23+
1424# Copy project files
1525COPY samples samples
1626COPY packages packages
Original file line number Diff line number Diff line change 11# ## STAGE 1: base image
22ARG DOCKER_REGISTRY=ghcr.io
33ARG VERSION=latest
4- FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
4+ # substrate's gVisor (ateom) checkpoint/restore segfaults processes linked against trixie's newer glibc
5+ # use bookworm to align with the kagent-adk runtime image
6+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
57
68WORKDIR /app
79
@@ -11,6 +13,14 @@ RUN apt-get update && apt-get install -y \
1113 && rm -rf /var/lib/apt/lists/* \
1214 && apt-get clean
1315
16+ # this mirrors the kagent-adk's uv configuration and is needed to work on substrate
17+ # as gVisor checkpoint/restore segfaults the base image's system
18+ # CPython on restore and the standalone build survives. Both this and the bookworm base
19+ # are needed for BYO to work on substrate as this pins the base image to use a base image with glibc 2.36
20+ # where as the prvious base image python3.13-trixie-slim used glibc 2.41
21+ ENV UV_PYTHON_PREFERENCE=only-managed
22+ ENV UV_PYTHON_INSTALL_DIR=/python
23+
1424# Copy project files
1525COPY samples samples
1626COPY packages packages
Original file line number Diff line number Diff line change 11# ## STAGE 1: base image
22ARG DOCKER_REGISTRY=ghcr.io
33ARG VERSION=latest
4- FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
4+ # substrate's gVisor (ateom) checkpoint/restore segfaults processes linked against trixie's newer glibc
5+ # use bookworm to align with the kagent-adk runtime image
6+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
57
68WORKDIR /app
79
@@ -11,6 +13,14 @@ RUN apt-get update && apt-get install -y \
1113 && rm -rf /var/lib/apt/lists/* \
1214 && apt-get clean
1315
16+ # this mirrors the kagent-adk's uv configuration and is needed to work on substrate
17+ # as gVisor checkpoint/restore segfaults the base image's system
18+ # CPython on restore and the standalone build survives. Both this and the bookworm base
19+ # are needed for BYO to work on substrate as this pins the base image to use a base image with glibc 2.36
20+ # where as the prvious base image python3.13-trixie-slim used glibc 2.41
21+ ENV UV_PYTHON_PREFERENCE=only-managed
22+ ENV UV_PYTHON_INSTALL_DIR=/python
23+
1424# Copy project files
1525COPY samples samples
1626COPY packages packages
Original file line number Diff line number Diff line change 11# ## STAGE 1: base image
22ARG DOCKER_REGISTRY=ghcr.io
33ARG VERSION=latest
4- FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
4+ # substrate's gVisor (ateom) checkpoint/restore segfaults processes linked against trixie's newer glibc
5+ # use bookworm to align with the kagent-adk runtime image
6+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
57
68WORKDIR /app
79
@@ -11,6 +13,14 @@ RUN apt-get update && apt-get install -y \
1113 && rm -rf /var/lib/apt/lists/* \
1214 && apt-get clean
1315
16+ # this mirrors the kagent-adk's uv configuration and is needed to work on substrate
17+ # as gVisor checkpoint/restore segfaults the base image's system
18+ # CPython on restore and the standalone build survives. Both this and the bookworm base
19+ # are needed for BYO to work on substrate as this pins the base image to use a base image with glibc 2.36
20+ # where as the prvious base image python3.13-trixie-slim used glibc 2.41
21+ ENV UV_PYTHON_PREFERENCE=only-managed
22+ ENV UV_PYTHON_INSTALL_DIR=/python
23+
1424# Copy project files
1525COPY samples samples
1626COPY packages packages
Original file line number Diff line number Diff line change 11# ## STAGE 1: base image
22ARG DOCKER_REGISTRY=ghcr.io
33ARG VERSION=latest
4- FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
4+ # substrate's gVisor (ateom) checkpoint/restore segfaults processes linked against trixie's newer glibc
5+ # use bookworm to align with the kagent-adk runtime image
6+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
57
68WORKDIR /app
79
@@ -12,6 +14,14 @@ RUN apt-get update && apt-get install -y \
1214 && rm -rf /var/lib/apt/lists/* \
1315 && apt-get clean
1416
17+ # this mirrors the kagent-adk's uv configuration and is needed to work on substrate
18+ # as gVisor checkpoint/restore segfaults the base image's system
19+ # CPython on restore and the standalone build survives. Both this and the bookworm base
20+ # are needed for BYO to work on substrate as this pins the base image to use a base image with glibc 2.36
21+ # where as the prvious base image python3.13-trixie-slim used glibc 2.41
22+ ENV UV_PYTHON_PREFERENCE=only-managed
23+ ENV UV_PYTHON_INSTALL_DIR=/python
24+
1525# Same layout as currency: context must be ./python (full uv workspace).
1626COPY samples samples
1727COPY packages packages
You can’t perform that action at this time.
0 commit comments