Docker buildkit opencv compilation

I also stumbled across that topic, unfortunately I really need the highgui option for my docker image.

I also found this thread Build docker image works local but doesn't work on docker hub - cmake - #6 by frederickzh
However, in the solution (last comment) they refer to a different post, which isn’t available anymore. The summary that was posted is unclear to me:

the issue is statx which has been updated as part of coreutils, currently if you want to build using docker hub infrastructure the only workaround is to rollback the version of coreutils package (confirmed working)