From b0bd603931f4b2d839a47b573441102b639c9c41 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 10 Sep 2020 15:02:04 +0200 Subject: [PATCH] fix: Follow DKL-DI-0004 guideline Without this patch, we need to build a cache, remove it. Since apk allows to work with no-cache and won't leave artifacts, we should use it. This will make the dockle best practices scanner happier. --- cmd/kured/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kured/Dockerfile b/cmd/kured/Dockerfile index 5530137..1163995 100644 --- a/cmd/kured/Dockerfile +++ b/cmd/kured/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:3.12 -RUN apk update && apk add ca-certificates tzdata && rm -rf /var/cache/apk/* +RUN apk add --no-cache ca-certificates tzdata # NB: you may need to update RBAC permissions when upgrading kubectl - see kured-rbac.yaml for details ADD https://storage.googleapis.com/kubernetes-release/release/v1.18.8/bin/linux/amd64/kubectl /usr/bin/kubectl RUN chmod 0755 /usr/bin/kubectl