title: Issue in building Image in AWS CodeBuild
body: <p>I'm building image through the below command by using AWS code build and getting errors.</p>
  <p>Commands:</p>
  <pre><code>docker buildx build -t &quot;$IMAGE_REPO_NAME:$IMAGE_TAG&quot; --platform linux/amd64,linux/arm64 --push .
  </code></pre>
  <p>Error:</p>
  <pre><code>[Container] 2022/08/01 09:49:38 Running command docker buildx build -t &quot;$IMAGE_REPO_NAME:$IMAGE_TAG&quot; --platform linux/amd64,linux/arm64 --push .
  unknown shorthand flag: 't' in -t
  </code></pre>
  <p>also while im removing &quot;-t&quot; it's throwing</p>
  <pre><code>[Container] 2022/08/01 09:26:44 Running command docker buildx build $IMAGE_REPO_NAME:$IMAGE_TAG --platform linux/amd64,linux/arm64 --push .
  </code></pre>
  <blockquote>
  <p>unknown flag: --platform See 'docker --help'.</p>
  </blockquote>
  <p>Can anyone help here with how it will be resolved?</p>