diff --git a/Dockerfile b/Dockerfile index 3589fb4..30a1d95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY yamlparser/ yamlparser/ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o kir main.go -FROM gcr.io/distroless/static:nonroot@sha256:f7f8f729987ad0fdf6b05eeeae94b26e6a0f613bdf46feea7fc40f7bd72953e6 +FROM gcr.io/distroless/static:nonroot@sha256:18f4cc26c9ffa7f20a359298be7deadac5c607c8e03a02b8119f1a5fc2f82c99 WORKDIR / COPY --from=builder /workspace/kir . USER 65532:65532 diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 404282c..49b7505 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,6 +1,6 @@ # Build context is assembled by GoReleaser: the pre-built `kir` binary for the # target platform is copied in, so there is no build step here. -FROM gcr.io/distroless/static:nonroot@sha256:f7f8f729987ad0fdf6b05eeeae94b26e6a0f613bdf46feea7fc40f7bd72953e6 +FROM gcr.io/distroless/static:nonroot@sha256:18f4cc26c9ffa7f20a359298be7deadac5c607c8e03a02b8119f1a5fc2f82c99 WORKDIR / COPY kir /kir USER 65532:65532