That's very interesting. I would love for someone to dig deeper into this.
What happens if you do a multistage build (to get rid of the build tools once you don't need them) and compile Postgres from source on Alpine and Bionic?
What happens if you do a multistage build (to get rid of the build tools once you don't need them) and compile Postgres from source on Alpine and Bionic?
Probably makes your total build time significantly longer; you'd need aggressive caching based on the feature flag set.