Skip to content

Commit 785fd81

Browse files
committed
Migrate from RHEL9 to UBI9-minimal image
1 parent 41b064e commit 785fd81

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

build/Dockerfile.openshift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ WORKDIR /go/src/github.com/openshift/kubernetes-nmstate
33
COPY . .
44
RUN GO111MODULE=on go build --mod=vendor -o build/_output/bin/manager ./cmd/handler/
55

6-
FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
6+
FROM ubi8-minimal
77

88
RUN \
9-
dnf -y update && \
10-
dnf -y install \
11-
nmstate \
12-
iputils \
13-
iproute && \
14-
dnf clean all
9+
microdnf -y update && \
10+
microdnf -y install \
11+
nmstate \
12+
iputils \
13+
iproute && \
14+
microdnf clean all
1515

1616

1717
COPY --from=builder /go/src/github.com/openshift/kubernetes-nmstate/build/_output/bin/manager /usr/bin/

build/Dockerfile.operator.openshift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /go/src/github.com/openshift/kubernetes-nmstate
33
COPY . .
44
RUN GO111MODULE=on go build --mod=vendor -o build/_output/bin/manager ./cmd/operator
55

6-
FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
6+
FROM ubi8-minimal
77

88
COPY --from=builder /go/src/github.com/openshift/kubernetes-nmstate/build/_output/bin/manager /usr/bin/
99
COPY deploy/crds/nmstate.io_nodenetwork*.yaml /bindata/kubernetes-nmstate/crds/

0 commit comments

Comments
 (0)