How to build your Docker image using the same Dockerfile regardless of the host architecture
If you are now using docker on a Mac M1 (
arm64 platform), you don't want to use
amd64 as the architecture for your Linux Images.
You could have 2 lines on your
Dockerfile and comment each one depending on where you're building the image
# Building on Apple Silicon host