4 ms·
This could be smaller by removing compilers and build headers. If I'm not mistaken I see GCC is currently part of this. I would prefer to manually install buil
by verst 9y ago
This could be smaller by removing compilers and build headers. If I'm not mistaken I see GCC is currently part of this.
I would prefer to manually install build-essentials when needed (I can then get rid of them after compiling via multistage builds).
Alpine Linux specifically makes you manually install compilers and necessary headers via
apk add --update build-base
EDIT: Make is not being installed by default. But I would like to manually install GCC as needed (for a truly minimal image).
EDIT2: I stand corrected. Looks like GCC isn't installed by default (which is exactly what we want for minimal images). Awesome.
- tomc1985 9y agodebian does that too
- roller 9y agoThe gcc-7-base package (assuming that's what you're looking at) looks like it's just an empty directory to put various gcc things and some basic docs. https://packages.debian.org/sid/gcc-7-base https://packages.debian.org/sid/gcc-7-base https://packages.debian.org/sid/amd64/gcc-7-base/filelist https://packages.debian.org/sid/amd64/gcc-7-base/filelist
- verst 9y agoThanks! I was looking at [1] and wasn't sure if those were binaries. That's perfect then. Install GCC, compilers, build headers etc via `sudo apt-get install build-essential` when necessary. So this should be the same general approach as on Alpine. [1]: https://pastebin.ubuntu.com/26506363/ https://pastebin.ubuntu.com/26506363/
- geofft 9y agolibgcc_s.so.1 is a collection of utility routines used by all sorts of programs. The entry named "gcc" is a directory (that contains only empty directories?). /usr/share/gcc-7/python/libstdcxx/ is from the libstdc++6 package (looks like gdb pretty-printers for C++ standard library types).