diff --git a/keyservice/Dockerfile b/keyservice/Dockerfile index 2d32d7979..9f995204f 100644 --- a/keyservice/Dockerfile +++ b/keyservice/Dockerfile @@ -26,6 +26,6 @@ WORKDIR /constellation/keyservice/cmd ARG PROJECT_VERSION=0.0.0 RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -o /constellation/build/keyservice -trimpath -buildvcs=false -ldflags "-s -w -buildid='' -X github.com/edgelesssys/constellation/v2/internal/constants.VersionInfo=${PROJECT_VERSION}" -FROM gcr.io/distroless/static:nonroot@sha256:1fa522fe6cfe020d50341f1ca561c099487bd44f8eb98d25d1920b07e05e40be as release +FROM gcr.io/distroless/static:nonroot@sha256:26d07ba1f954c02943786e352bc2c8f4eac719ae2f76a0ced68a953bed93a779 as release COPY --from=build /constellation/build/keyservice /keyservice ENTRYPOINT ["/keyservice"] diff --git a/operators/constellation-node-operator/Dockerfile b/operators/constellation-node-operator/Dockerfile index 6e2648612..71bc954fb 100644 --- a/operators/constellation-node-operator/Dockerfile +++ b/operators/constellation-node-operator/Dockerfile @@ -25,7 +25,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM gcr.io/distroless/static:nonroot@sha256:1fa522fe6cfe020d50341f1ca561c099487bd44f8eb98d25d1920b07e05e40be as release +FROM gcr.io/distroless/static:nonroot@sha256:26d07ba1f954c02943786e352bc2c8f4eac719ae2f76a0ced68a953bed93a779 as release WORKDIR / COPY --from=builder /workspace/operators/constellation-node-operator/manager . USER 65532:65532