This will make sure "variant" gets set properly on the resulting images if our Docker version is 20.10+.
We set this as tightly/sparingly as possible because the `--platform` flag is used for several different things inside Docker, the most visible being platform mismatch warnings/errors that we want to avoid.