From 9eeda0f24f8820555fbdee68e86662b2d5161607 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 8 Aug 2023 23:47:59 +0200 Subject: [PATCH] Optimize container image size Remove the SDK's git database to optimize the image size. There is no need for the git history (the checkout is anyway shallow). --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 65773a76..e7d16d96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,8 @@ ARG GECKO_SDK_VERSION="v4.3.1" RUN \ git clone --depth 1 -b ${GECKO_SDK_VERSION} \ - https://github.com/SiliconLabs/gecko_sdk.git + https://github.com/SiliconLabs/gecko_sdk.git \ + && rm -rf gecko_sdk/.git ARG USERNAME=builder ARG USER_UID=1000