title: syntax error near unexpected token `(' when building a docker image from dockerfile
body: <p>I am trying to run the below command over an alpine image in my docker file:</p>
  <p>I have powershell installed and trying to get chocolatey through powershell commands.</p>
  <pre><code>RUN pwsh -c Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  </code></pre>
  <p>and running into this error</p>
  <blockquote>
  <p>/bin/bash: -c: line 0: syntax error near unexpected token `('</p>
  </blockquote>
  <p>I also tried including the below and ran into the same issue.</p>
  <pre><code>SHELL [&quot;/bin/bash&quot;, &quot;-c&quot;] \
  RUN shopt -s extglob
  </code></pre>