Skip to content

Commit a4b1447

Browse files
committed
fix: remove unecessary krane dependency from app image
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
1 parent e8ad33d commit a4b1447

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

python/Dockerfile

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
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
232
ARG BASE_IMAGE_REGISTRY=cgr.dev
243
FROM $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
10483
ENV 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-
11185
USER python
11286
WORKDIR /.kagent
11387

0 commit comments

Comments
 (0)