Is there a way to build a docker image while I am building a docker image?

Google’s cloud build is weird to me. It has the yaml way, the json way, and the docker way. The yaml way is every command is a docker image and command to do something(which just seems very weird). I really really wanted to just have google build execute a docker image of mine to do the entire build. Instead, I could only figure out how to do things ‘during’ an image build of docker and in so resulted in this SO post of all the details…

Any ideas?

thanks,
Dean

You can check Using Docker Buildx to Create Cross-Platform Docker Images for Seamless Compatibility. I hope it would be helpful to you.