diff --git a/Dockerfile b/Dockerfile index 6f2ee3869..736fd4561 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ COPY internal/ internal/ # by leaving it empty we can ensure that the container and binary shipped on it will have the same platform. RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go -FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7 +FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71 WORKDIR / COPY --from=builder /workspace/manager . USER 65532:65532 diff --git a/Dockerfile.rhtas-operator.rh b/Dockerfile.rhtas-operator.rh index 432d66fd8..c5b054700 100644 --- a/Dockerfile.rhtas-operator.rh +++ b/Dockerfile.rhtas-operator.rh @@ -1,5 +1,5 @@ ## Build the manager binary -FROM registry.redhat.io/ubi9/go-toolset:9.6@sha256:7b1828de52c3bac600a71b81996bf748776a456181a45e2b329b39702cf6486f as builder +FROM registry.redhat.io/ubi9/go-toolset:9.7@sha256:56fc8480721e5febbd2b6810199a63b5b68c3c5ab826d082c8247054a1dc33e7 as builder ARG TARGETOS ARG TARGETARCH @@ -27,7 +27,7 @@ COPY internal/ internal/ RUN go mod download && \ GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -mod=readonly -a -o manager cmd/main.go -FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:34880b64c07f28f64d95737f82f891516de9a3b43583f39970f7bf8e4cfa48b7 +FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71 WORKDIR / COPY --from=builder /workspace/manager . COPY LICENSE /licenses/license.txt