Following comments from seed PR dogecoin/dogecoin#2337 (comment).
In the current situation, it's possible to build a single version with each Dockerfile because the hash of Dogecoin Core is hardcoded
within the Dockerfile.
By taking a look at Docker security instruction to build Dockerfile, they are suggesting alternatives to avoid this hardcoded hash.
Need extra investigation, I will share my finding about the topic here to see if an improvement is possible.