If you are using an M1 mac and want to build an x86 (64-bit) image:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t your_name/image_name .
If you are using an M1 mac and want to build an x86 (64-bit) image:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t your_name/image_name .