Is it possible to set a mac address for `docker build`?

With docker run, it’s possible to fix the MAC address with the --mac-address option. I’ve looked, and I can’t find a way to fix the MAC address with docker build. I am wanting to dockerize software that has a license fixed to a MAC address (I’m not trying to get around the license; I’m trying to have a more reproducible system architecture).

Thanks!

I found a partial answer of “no” to my question here: https://github.com/moby/moby/issues/1916

Is there a better way than build-run-commit for my use case?

And, I got an end-run yes answer on SO: https://stackoverflow.com/questions/48675505/is-it-possible-to-set-a-mac-address-for-docker-build/48676884#48676884