This PR isolates the GUI build, including its specific dependencies, into a dedicated container.
Benefits of this approach:
Improves security: Any unknown backdoors in GUI-specific dependencies will no longer affect
bitcoindand other non-GUI binaries.Enables a safer upgrade path: Allows for the introduction of additional GUI dependencies needed for Wayland support or transitioning to the QML-based GUI.
Could be useful for #25573.
This implementation is based on an idea proposed here.
Currently based on #34948 and #35072.
Closes #29914.