From 0c36185cb1da55c8abdff45a08997804a467879f Mon Sep 17 00:00:00 2001 From: Brooks Newberry Date: Tue, 11 Oct 2022 12:52:29 -0700 Subject: [PATCH] switch to bci base image (#16) --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed991ff..df28b5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -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.17.13b7 -FROM ${UBI_IMAGE} as ubi +FROM ${BCI_IMAGE} as bci FROM ${GO_IMAGE} as builder # setup required packages RUN set -x \ @@ -40,8 +40,6 @@ RUN if [ "${ARCH}" != "s390x" ]; then \ RUN install -s bin/* /usr/local/bin RUN metrics-server --help -FROM ubi -RUN microdnf update -y && \ - rm -rf /var/cache/yum +FROM bci COPY --from=builder /usr/local/bin/metrics-server / ENTRYPOINT ["/metrics-server"]