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