Skip to content

Commit

Permalink
chore(deps): add LICENSE to UBI /licenses (#418)
Browse files Browse the repository at this point in the history
chore(deps): add LICENSE to UBI /licenses

fix(deps): update UBI image reference from SHA256 to tag format 9.5-1734495538
  • Loading branch information
sergeyberezansky authored Jan 13, 2025
2 parents d52112d + ca782af commit 1435d80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG KUBECTL_VERSION=1.31.2
ARG UBI_HASH=9ac75c1a392429b4a087971cdf9190ec42a854a169b6835bc9e25eecaf851258
ARG UBI_HASH=9.5-1734495538
FROM golang:1.22-alpine AS go-builder
ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -30,11 +30,13 @@ RUN echo Building package
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -ldflags '-X main.version='$VERSION' -extldflags "-static"' -o "/bin/wekafsplugin" /src/cmd/*
FROM registry.k8s.io/kubernetes/kubectl:v${KUBECTL_VERSION} AS kubectl

FROM registry.access.redhat.com/ubi9/ubi@sha256:${UBI_HASH}
FROM registry.access.redhat.com/ubi9/ubi:${UBI_HASH}
LABEL maintainers="WekaIO, LTD"
LABEL description="Weka CSI Driver"

RUN dnf install -y util-linux libselinux-utils pciutils binutils jq
RUN mkdir -p /licenses
COPY LICENSE /licenses
COPY --from=kubectl /bin/kubectl /bin/kubectl
COPY --from=go-builder /bin/wekafsplugin /wekafsplugin
COPY --from=go-builder /src/locar /locar
Expand Down

0 comments on commit 1435d80

Please sign in to comment.