I want to use Linuxbrew to install fresh software when building a Docker image.
Size is crucial for Docker images, so I was wondering how can I slim down the Linuxbrew size after packages installation?
So far I’m doing
rm -rf "$(/home/linuxbrew/.linuxbrew/bin/brew --cache)"
However, that’s still leaving quite a significant amount of unnecessary data in the image, mainly homebrew/core tap. How can I safely delete this data? Unfortunately, untapping homebrew/core isn’t allowed.