title: Docker startup script cannot be found
body: <p>I am using Docker for Windows 10 to start up a eureka and configuration server. I'm trying to add startup script to ensure eureka has fully started before starting the config server. The following files are stored at the root of my project:</p>
  
  <p><strong>Dockerfile - config server</strong> </p>
  
  <pre><code>FROM openjdk:8-jdk-alpine
  RUN  apk update &amp;&amp; apk upgrade &amp;&amp; apk add netcat-openbsd &amp;&amp; apk add curl
  RUN mkdir -p /usr/local/configserver
  ADD ./target/config-server-0.0.1-SNAPSHOT.jar /usr/local/configserver/
  ADD run.sh run.sh
  RUN chmod +x run.sh
  CMD ./run.sh
  </code></pre>
  
  <p><strong>run.sh</strong></p>
  
  <pre><code>#!/bin/sh
  
  echo "********************************************************"
  echo "Waiting for the eureka server to start  on port $EUREKASERVER_PORT"
  echo "********************************************************"
  while ! `nc -z eurekaserver $EUREKASERVER_PORT`; do sleep 3; done
  echo "&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Eureka Server has started"
  
  echo "********************************************************"
  echo "Starting Configuration Server
  echo "********************************************************"
  java -jar /usr/local/configserver/config-server-0.0.1-SNAPSHOT.jar
  </code></pre>
  
  <p>Using the following docker-compose:</p>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: '2.2'
  services:
      eurekaserver:
          image: eureka-naming-server
          ports:
              - "8761:8761"
      configserver:
          image: config-server
          ports:
              - "10000:10000"
          environment:
              EUREKASERVER_PORT: 8761
              EUREKASERVER_URI: "http://eurekaserver:8761/eureka/"
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>C:\docker\prj&gt; docker-compose -f docker-compose.yml up
  Creating eureka-naming-server_configserver_1 ... done
  Creating eureka-naming-server_eurekaserver_1 ... done
  Attaching to eureka-naming-server_configserver_1, eureka-naming-server_eurekaserver_1
  configserver_1  | /bin/sh: ./run.sh: not found
  </code></pre>
  
  <p>Any ideas as to why run.sh cannot be found?
  Thanks</p>