Great timing. Just 2 weeks ago I produced what to my knowledge is the first full-source-bootstrapped, deterministic, and OCI-native PostgreSQL package.<p>Built and signed by multiple people and entirely distro agnostic. You can even build with your pick of several OCI engines on several operating systems so maximally portable too.<p>If extensions are packaged similarly it will sure make my life easier integrating them.<p>If you are going to package with only one standard, OCI is the most portable and flexible choice today IMO.<p><a href="https://codeberg.org/stagex/stagex/src/branch/main/packages/postgresql/Containerfile" rel="nofollow">https://codeberg.org/stagex/stagex/src/branch/main/packages/...</a>
Why not continue to use rpm/apt for building and packaging? You can reuse these packages in the Dockerfile and the image, but not the other way around.