Minimal viable go install for CI builds

We use custom docker images based on the official golang:1.12 Dockerfile to run our CI jobs under k8s.

In order to optimize our CI system as much as we can, but also speed up the productivity of our remote developers that might be on a slower network we want to discard folders from /usr/local/go/ that are not absolutely required.

An obvious target is the /usr/local/go/doc directory, but we would like to delete more and we have a potential list of targets which is:

According to and!searchin/golang-nuts/linux_amd64_race|sort:date/golang-nuts/HwAyVo9mBHs/uq1TpTcWqxUJ we seem to be on the right track but it is from 5 years ago and GoLang has evolved since.

Have others experimented with this recently? Currently, according to docker images our custom GoLang 1.12.9 image is 543MB vs 814MB for the official golang:1.12.9 image.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.