Skip to content

Commit

Permalink
Merge pull request #12 from brooksn/bci
Browse files Browse the repository at this point in the history
BCI base image
  • Loading branch information
manuelbuil authored Oct 11, 2022
2 parents 23e57be + 35177cf commit de7b0f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG TAG="v3.5.1"
ARG UBI_IMAGE=registry.access.redhat.com/ubi7/ubi-minimal:latest
ARG BCI_IMAGE=registry.suse.com/bci/bci-base:latest
ARG GO_IMAGE=rancher/hardened-build-base:v1.18.5b7

# Build the project
Expand All @@ -16,10 +16,12 @@ RUN git checkout tags/${TAG} -b ${TAG}
RUN make clean && make build

# Create the sriov-network-device-plugin image
FROM ${UBI_IMAGE}
FROM ${BCI_IMAGE}
WORKDIR /
RUN microdnf update -y && \
microdnf install hwdata
RUN zypper refresh && \
zypper update -y && \
zypper install -y hwdata gawk which && \
zypper clean -a
COPY --from=builder /go/sriov-network-device-plugin/build/sriovdp /usr/bin/
COPY --from=builder /go/sriov-network-device-plugin/images/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit de7b0f5

Please sign in to comment.