Skip to content

Commit

Permalink
Switch runtime image to UBI
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Oct 31, 2024
1 parent 91fdd8f commit a3ac6f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions images/local-csi-driver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit a3ac6f7

Please sign in to comment.