by verst · 8y ago · 0 comments
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.
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.