From 5f11e7652d0a7ff5f3041e5cfbee685a1a3579af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Tue, 24 May 2022 17:51:06 +0000 Subject: [PATCH] build.sh: Remove Go cache after build Clean up Go cache to keep the COSA image as small as possible. Fixes: https://github.com/coreos/coreos-assembler/issues/2872 --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 8fdbab0df3..86f86d7fe1 100755 --- a/build.sh +++ b/build.sh @@ -102,6 +102,9 @@ install_ocp_tools() { make_and_makeinstall() { make && make install + # Remove go build cache + # https://github.com/coreos/coreos-assembler/issues/2872 + rm -rf /root/.cache/go-build } configure_user(){