Skip to content

Commit

Permalink
Use scratch as base image
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <[email protected]>
  • Loading branch information
manuelbuil committed May 13, 2024
1 parent 7f02485 commit 66efbac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down Expand Up @@ -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/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 66efbac

Please sign in to comment.