title: Dockerfile RUN - file not found
body: <p>I'm trying to execute (RUN) a script but I'm getting a not file found error:</p>
  <p>The line is: <code>RUN settings/certs/install-certs.sh</code></p>
  <p>The other lines that use files from the same path don't cause any issues.</p>
  <p>What Am I missing here?</p>
  <p>Dockerfile:</p>
  <pre><code>FROM container-registry.foo.net/maven:3.6.1-alpine as build
  WORKDIR /app
  COPY . .
  RUN chmod +x settings/certs/install-certs.sh
  RUN settings/certs/install-certs.sh
  RUN mvn clean install -s settings/maven/docker-settings.xml
  </code></pre>
  <p>Output:</p>
  <pre><code>Sending build context to Docker daemon    218MB
  Step 1/13 : FROM container-registry.foo.net/maven:3.6.1-alpine as build
   ---&gt; 7445f83cd169
  Step 2/13 : WORKDIR /app
   ---&gt; Using cache
   ---&gt; b08dcd4a3395
  Step 3/13 : COPY . .
   ---&gt; Using cache
   ---&gt; c843717f9c58
  Step 4/13 : RUN chmod +x settings/certs/install-certs.sh
   ---&gt; Using cache
   ---&gt; 17c6546c749b
  Step 5/13 : RUN settings/certs/install-certs.sh
   ---&gt; Running in 106d58b6bb25
  /bin/sh: settings/certs/install-certs.sh: not found
  The command '/bin/sh -c settings/certs/install-certs.sh' returned a non-zero code: 127
  </code></pre>