Skip to content

Commit 88dabc0

Browse files
committed
undo wolfi migration to images that can run as substrate workloads (won't work)
Signed-off-by: Fabian Gonzalez <[email protected]>
1 parent 17e9c41 commit 88dabc0

4 files changed

Lines changed: 6 additions & 14 deletions

File tree

‎go/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN --mount=type=cache,target=/root/go/pkg/mod,rw \
3232
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -ldflags "$LDFLAGS" -o /app "$BUILD_PACKAGE"
3333

3434
### STAGE 2: final image
35-
FROM ${BASE_IMAGE_REGISTRY}/chainguard/wolfi-base:latest
35+
FROM alpine:3.22
3636
ARG TARGETPLATFORM
3737

3838
RUN apk add --no-cache bash ca-certificates git && \

‎go/harness/claude/Dockerfile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ARG TARGETARCH
2727
ARG VERSION
2828

2929
ENV USE_BUILTIN_RIPGREP=0
30-
# apk upgrade to pick up the base's fixed CVEs.
3130
RUN apk upgrade --no-cache && apk add --no-cache bash ca-certificates git libgcc libstdc++ ripgrep \
3231
&& case "${TARGETARCH}" in \
3332
amd64) platform="linux-x64-musl"; checksum="${CLAUDE_CODE_AMD64_SHA256}" ;; \

‎go/harness/codex/Dockerfile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ ARG CODEX_CLI_ARM64_SHA256=580db3c7411f5852b550876f185c30b61b674e01b948fd5030f2c
2626
ARG TARGETARCH
2727
ARG VERSION
2828

29-
# apk upgrade to pick up the base's fixed CVEs.
3029
RUN apk upgrade --no-cache && apk add --no-cache bash ca-certificates git libgcc libstdc++ \
3130
&& case "${TARGETARCH}" in \
3231
amd64) platform="x86_64-unknown-linux-musl"; checksum="${CODEX_CLI_AMD64_SHA256}" ;; \

‎python/Dockerfile‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
ARG UV_VERSION=0.12.3
22
ARG TOOLS_PYTHON_VERSION=3.13
3-
ARG BASE_IMAGE_REGISTRY=cgr.dev
43
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv-bin
54

6-
# Wolfi package names encode the Python major.minor, so `python-3.13` pins the
7-
# interpreter and only its patch level floats on rebuild.
8-
FROM ${BASE_IMAGE_REGISTRY}/chainguard/wolfi-base:latest AS builder
9-
ARG TOOLS_PYTHON_VERSION
10-
RUN apk add --no-cache python-${TOOLS_PYTHON_VERSION}
5+
FROM python:${TOOLS_PYTHON_VERSION}-slim AS builder
116
ENV UV_LINK_MODE=copy \
127
UV_COMPILE_BYTECODE=1 \
138
UV_NO_PROGRESS=1 \
@@ -25,12 +20,11 @@ COPY packages/agentsts-core packages/agentsts-core
2520
RUN --mount=type=cache,target=/root/.cache/uv \
2621
uv sync --frozen --package kagent-adk --no-editable
2722

28-
FROM ${BASE_IMAGE_REGISTRY}/chainguard/wolfi-base:latest
23+
FROM python:${TOOLS_PYTHON_VERSION}-slim
2924
ARG VERSION
30-
ARG TOOLS_PYTHON_VERSION
31-
# The copied venv symlinks the interpreter, so the runtime needs the same python
32-
# package as the builder. tzdata is required for zoneinfo lookups.
33-
RUN apk add --no-cache python-${TOOLS_PYTHON_VERSION} bash ca-certificates tzdata \
25+
RUN apt-get update \
26+
&& apt-get install -y --no-install-recommends bash ca-certificates \
27+
&& rm -rf /var/lib/apt/lists/* \
3428
&& mkdir /config \
3529
&& chown 65532:65532 /config
3630
COPY --from=builder /.kagent/.venv /.kagent/.venv

0 commit comments

Comments
 (0)