I'm building a docker image which is to support gcc compilation on centos. But after I complete the installation of GCC from source on centos, the image expands to almost 6GB. Then my question is, which directories could be removed finally to reduce the image size.
I downloaded the source .tar.gz and decompress to one directory [SRCDIR] and then build (make install) in another directory [BUILDDIR].