Run docker based application on both x86 and arm64

I have an application need run on Jetson nano, but this application is not hardware related, and I will not use any actual GPU etc Jetson special hardware.
My plan is to build the application in x86 and run in a x86 docker, and also produce a ARM64 docker image and run in Jetson nano. So I can debug and test my application most in x86 envrionment.
I am going to use yocto to build image, and hopefully can produce both docker image in yocto. May I know if that possible and what is the best practice to do this?