From 8b4a0b368f54b78a1070d4c71ca83c116786ecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Sat, 9 Sep 2023 10:51:01 +0200 Subject: [PATCH] kata-deploy: Remove curl after it's used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no need to keep curl there after the kubectl binary has already been downloaded. Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/kata-deploy/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/Dockerfile b/tools/packaging/kata-deploy/Dockerfile index dd16a775d5..95f07f1430 100644 --- a/tools/packaging/kata-deploy/Dockerfile +++ b/tools/packaging/kata-deploy/Dockerfile @@ -19,7 +19,8 @@ RUN \ chmod +x /usr/bin/kubectl && \ mkdir -p ${DESTINATION} && \ tar xvf ${WORKDIR}/${KATA_ARTIFACTS} -C ${DESTINATION} && \ - rm -f ${WORKDIR}/${KATA_ARTIFACTS} + rm -f ${WORKDIR}/${KATA_ARTIFACTS} && \ + apk del curl COPY scripts ${DESTINATION}/scripts COPY runtimeclasses ${DESTINATION}/runtimeclasses