diff --git a/Containerfile.acm b/Containerfile.acm index 9891a6cce3..6282575139 100644 --- a/Containerfile.acm +++ b/Containerfile.acm @@ -1,7 +1,7 @@ # Copyright Contributors to the Open Cluster Management project ARG NODE_BASE=registry.redhat.io/ubi9/nodejs-24-minimal:latest ARG RUNTIME_BASE=registry.redhat.io/ubi9/ubi-minimal:latest -ARG GO_BASE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.26 +ARG GO_BASE=registry.redhat.io/openshift/golang-builder:golang-builder-v1.26-rhel9 FROM registry.redhat.io/ubi9/ubi:latest AS crypto-policy RUN update-crypto-policies --set DEFAULT:PQ @@ -22,7 +22,7 @@ WORKDIR /src COPY ./backend/go.mod ./backend/go.sum ./ RUN go mod download COPY ./backend . -RUN CGO_ENABLED=0 GOOS=linux go build -mod=mod -o /console ./cmd/console +RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o /console ./cmd/console FROM ${RUNTIME_BASE} COPY --from=crypto-policy /etc/crypto-policies /etc/crypto-policies diff --git a/Containerfile.mce b/Containerfile.mce index 753872fbe6..be18f2ec08 100644 --- a/Containerfile.mce +++ b/Containerfile.mce @@ -1,7 +1,7 @@ # Copyright Contributors to the Open Cluster Management project ARG NODE_BASE=registry.redhat.io/ubi9/nodejs-24-minimal:latest ARG RUNTIME_BASE=registry.redhat.io/ubi9/ubi-minimal:latest -ARG GO_BASE=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.26 +ARG GO_BASE=registry.redhat.io/openshift/golang-builder:golang-builder-v1.26-rhel9 FROM registry.redhat.io/ubi9/ubi:latest AS crypto-policy RUN update-crypto-policies --set DEFAULT:PQ @@ -22,7 +22,7 @@ WORKDIR /src COPY ./backend/go.mod ./backend/go.sum ./ RUN go mod download COPY ./backend . -RUN CGO_ENABLED=0 GOOS=linux go build -mod=mod -o /console ./cmd/console +RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o /console ./cmd/console FROM ${RUNTIME_BASE} COPY --from=crypto-policy /etc/crypto-policies /etc/crypto-policies