I’m trying to run an image on Docker for Windows.
I have a Dockerfile like this:
FROM openjdk:8-jre-alpine
WORKDIR /myworkdir
COPY path/tomyproject/src/main/bin/start /myworkdir/start
...
EXPOSE 8080
CMD [ "sh", "/myworkdir/start" ]
#!/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
i can't run it and get the following error:
: not found myworkdir/start: line 4: /myworkdir/start: line 6: syntax error: unexpected word (expecting "do")