Skip to content

Commit

Permalink
build.sh: Remove Go cache after build
Browse files Browse the repository at this point in the history
Clean up Go cache to keep the COSA image as small as possible.

Fixes: coreos#2872
  • Loading branch information
travier authored and dustymabe committed May 25, 2022
1 parent 3c7694e commit 5f11e76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 5f11e76

Please sign in to comment.