diff --git a/dockerfiles/agent/container/Dockerfile b/dockerfiles/agent/container/Dockerfile index 686e2d74..dbc63982 100644 --- a/dockerfiles/agent/container/Dockerfile +++ b/dockerfiles/agent/container/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.19 AS builder +FROM cgr.dev/chainguard/wolfi-base AS builder +RUN apk update && apk add go-1.21 WORKDIR / COPY ./ ./ -RUN go mod download RUN CGO_ENABLED=0 go build -o ./build/agent agent/container/main.go -FROM scratch +FROM cgr.dev/chainguard/static:latest COPY --from=builder ./build/agent agent USER 65532:65532