title: Shell script fails on Docker for windows
body: <p>I'm facing a problem trying to run an image on Docker for Windows.</p>
  
  <p>I have a Dockerfile like this:</p>
  
  <pre><code>FROM openjdk:8-jre-alpine
  WORKDIR /myworkdir
  COPY path/tomyproject/src/main/bin/start /myworkdir/start
  ...
  EXPOSE 8080
  
  CMD [ "sh", "/myworkdir/start" ]
  </code></pre>
  
  <p>And here is a piece that fails on "start" file:</p>
  
  <pre><code>#!/bin/sh
  
  SCRIPT="$0"
  # set the environment variables received from the command line
  for i; do
  case "$i" in
    *=*) echo $i ;
    key=${i%=*}
    value=${i#*=};
    export $key=$value
  esac
  done
  </code></pre>
  
  <p>I have not problem building and running this into a Mac however on Windows (Docker for windows) i can't run it and got this message:</p>
  
  <blockquote>
    <p>: not found myworkdir/start: line 4:
    /myworkdir/start: line 6: syntax error: unexpected word (expecting "do")</p>
  </blockquote>
  
  <p>If someone is familiar with this and know how to resolve it, please help !!</p>