From 66efbac093499d020bb6d679c3197c06ad027e6d Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 13 May 2024 12:50:17 +0200 Subject: [PATCH] Use scratch as base image Signed-off-by: Manuel Buil --- Dockerfile | 4 +--- README.md | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 499f6ee..fb2e51d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -ARG BCI_IMAGE=registry.suse.com/bci/bci-base ARG GO_IMAGE=rancher/hardened-build-base:v1.20.4b11 -FROM ${BCI_IMAGE} as bci FROM ${GO_IMAGE} as builder # setup required packages RUN set -x && \ @@ -29,5 +27,5 @@ RUN if [ "${ARCH}" = "amd64" ]; then \ RUN install -s bin/* /usr/local/bin RUN crictl --version -FROM bci +FROM scratch COPY --from=builder /usr/local/bin/ /usr/local/bin/ diff --git a/README.md b/README.md index 8db01a3..ed348f9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -# rancher/hardened--crictl +# rancher/hardened-crictl ## Build ```sh TAG=v1.17.0 make ``` + +This image is never used directly but consumed by the RKE2 image to include crictl