Is there a reason that /usr/src/gcc/ isn't deleted after the build is finished? In gcc:8.2.0 that particular directory is 774M, if I'm using du properly.
It seems like the source code shouldn't be required for the gcc executable to run. Are there other reasons that container users might need access to the source? If not, we could reduce the image size significantly.