Skip to content

Commit 71d73c4

Browse files
authored
Merge pull request #28 from manuelbuil/addScratch
Use scratch as base image
2 parents fc4f9ed + 66efbac commit 71d73c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ARG BCI_IMAGE=registry.suse.com/bci/bci-base
21
ARG GO_IMAGE=rancher/hardened-build-base:v1.20.4b11
3-
FROM ${BCI_IMAGE} as bci
42
FROM ${GO_IMAGE} as builder
53
# setup required packages
64
RUN set -x && \
@@ -29,5 +27,5 @@ RUN if [ "${ARCH}" = "amd64" ]; then \
2927
RUN install -s bin/* /usr/local/bin
3028
RUN crictl --version
3129

32-
FROM bci
30+
FROM scratch
3331
COPY --from=builder /usr/local/bin/ /usr/local/bin/

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# rancher/hardened--crictl
1+
# rancher/hardened-crictl
22

33
## Build
44

55
```sh
66
TAG=v1.17.0 make
77
```
8+
9+
This image is never used directly but consumed by the RKE2 image to include crictl

0 commit comments

Comments
 (0)