He has done some work on this in the past at [1]. [1] - 3f6c905fef/postprocess.sh
3f6c905fef/postprocess.sh
We'll start with the same used for fedora docker base.