File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1- # Temporary: use apk to install krane
2- # once https://github.com/wolfi-dev/os/pull/78579 is merged.
3- # ## STAGE 0: build krane
4- ARG BASE_IMAGE_REGISTRY=cgr.dev
5- FROM $BASE_IMAGE_REGISTRY/chainguard/go:latest AS krane-builder
6-
7- ENV KRANE_VERSION=v0.20.7
8- WORKDIR /build
9-
10- RUN git clone --depth 1 --branch $KRANE_VERSION \
11- https://github.com/google/go-containerregistry.git
12-
13- WORKDIR /build/go-containerregistry/cmd/krane
14-
15- RUN --mount=type=cache,target=/root/.cache/go-build \
16- --mount=type=cache,target=/go/pkg/mod \
17- CGO_ENABLED=0 go build \
18- -trimpath \
19- -ldflags="-s -w" \
20- -o /build/krane .
21-
221# ## STAGE 1: base image
232ARG BASE_IMAGE_REGISTRY=cgr.dev
243FROM $BASE_IMAGE_REGISTRY/chainguard/wolfi-base:latest AS base-os
@@ -103,11 +82,6 @@ RUN --mount=type=cache,target=/root/.npm \
10382# Ensure the sandbox runtime binaries are on PATH
10483ENV PATH="/opt/sandbox-runtime/node_modules/.bin:$PATH"
10584
106- # Install anthropic sandbox runtime and dependencies
107- # RUN --mount=type=cache,target=/var/cache/apk,rw \
108- # apk add krane
109- COPY --from=krane-builder --chown=1001:1001 /build/krane /usr/local/bin/krane
110-
11185USER python
11286WORKDIR /.kagent
11387
You can’t perform that action at this time.
0 commit comments