From f0d176929c62b6258e916cb3ddd04491692a2aa7 Mon Sep 17 00:00:00 2001 From: Brian Downs Date: Fri, 1 Mar 2024 03:41:49 -0700 Subject: [PATCH] Change from BCI Base to scratch (#26) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67e924c..4ff030b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -ARG BCI_IMAGE=registry.suse.com/bci/bci-base +#ARG BCI_IMAGE=registry.suse.com/bci/bci-micro ARG GO_IMAGE=rancher/hardened-build-base:v1.20.7b3 -FROM ${BCI_IMAGE} as bci +#FROM ${BCI_IMAGE} as bci FROM ${GO_IMAGE} as builder # setup required packages RUN set -x && \ @@ -40,6 +40,6 @@ RUN if [ "${ARCH}" = "amd64" ]; then \ RUN install -s bin/* /usr/local/bin RUN metrics-server --help -FROM bci +FROM scratch COPY --from=builder /usr/local/bin/metrics-server / ENTRYPOINT ["/metrics-server"]