From a3ac6f7c1eb54bd36a7831f3fed60b6da27ec582 Mon Sep 17 00:00:00 2001 From: Tomas Nozicka Date: Thu, 31 Oct 2024 12:56:14 +0100 Subject: [PATCH] Switch runtime image to UBI --- images/local-csi-driver/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/images/local-csi-driver/Dockerfile b/images/local-csi-driver/Dockerfile index ff188bed..53a9dc91 100644 --- a/images/local-csi-driver/Dockerfile +++ b/images/local-csi-driver/Dockerfile @@ -4,13 +4,12 @@ WORKDIR /go/src/github.com/scylladb/local-csi-driver COPY . . RUN make build --warn-undefined-variables GO_BUILD_PACKAGES=./cmd/local-csi-driver -FROM quay.io/scylladb/scylla-operator-images:base-ubuntu-22.04 +FROM quay.io/scylladb/scylla-operator-images:base-ubi-9.4-minimal SHELL ["/bin/bash", "-euEo", "pipefail", "-O", "inherit_errexit", "-c"] -RUN apt-get update && \ - apt-get install -y --no-install-recommends xfsprogs && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* +RUN microdnf install -y xfsprogs && \ + microdnf clean all && \ + rm -rf /var/cache/dnf/* COPY --from=builder /go/src/github.com/scylladb/local-csi-driver/local-csi-driver /usr/bin/ ENTRYPOINT ["/usr/bin/local-csi-driver"]