I'd like to add the --platform option only if the variable 'platform' is equal to 'arm64', otherwise the option should not be passed in. And I don't want to duplicate the whole command and use an if-else.
platform=$(uname -m)
docker run --platform linux/arm64 \