Skip to content

Commit 392da90

Browse files
shay23braopenshift-merge-bot[bot]
authored andcommitted
update base image to ubi-minimal
1 parent 53374f3 commit 392da90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o bu
1919
RUN CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o build/server cmd/server/main.go
2020

2121

22-
FROM registry.ci.openshift.org/ocp/4.20:base-rhel9
22+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
2323

2424
ARG DATA_DIR=/data
2525
RUN mkdir $DATA_DIR && chmod 775 $DATA_DIR
2626

27-
RUN dnf install -y nmstate-libs-2.2.48-1.el9_4.x86_64 nmstate-2.2.48-1.el9_4.x86_64 && dnf clean all && rm -rf /var/cache/dnf/*
27+
RUN microdnf install -y nmstate-libs nmstate && microdnf clean all
2828

2929
WORKDIR /
3030
COPY --from=builder /opt/app-root/src/build/manager /usr/local/bin/

0 commit comments

Comments
 (0)