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 1f3374c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
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
Expand Down Expand Up @@ -29,5 +28,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 1f3374c

Please sign in to comment.