Skip to content

Commit

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

# Build the project
Expand All @@ -14,8 +14,11 @@ RUN git checkout tags/${TAG} -b ${TAG}
RUN make

# Create the network resources injector image
FROM ${UBI_IMAGE}
RUN microdnf update -y && microdnf install bash
FROM ${BCI_IMAGE}
RUN zypper refresh && \
zypper update -y && \
zypper install -y gawk which && \
zypper clean -a
WORKDIR /
COPY --from=builder /go/network-resources-injector/bin/webhook /usr/bin/
COPY --from=builder /go/network-resources-injector/bin/installer /usr/bin/
Expand Down

0 comments on commit 01aba3d

Please sign in to comment.