title: Dockerfile cannot find copied folder
body: <p>This is quite strange.</p>
  
  <p>I have a structure like this</p>
  
  <pre><code>app/
  CLI/
  someOtherFolder/
    thingIwantToRun.py
  tests.Dockerfile
  Dockerfile
  README.md
  gunicorn.conf
  </code></pre>
  
  <p>This is what my <code>Dockerfile</code> looks like</p>
  
  <pre><code>FROM python:3.6
  
  WORKDIR /app
  
  COPY ./requirements.txt /.requirements.txt
  # Install any needed packages specified in requirements.txt
  RUN pip install -r /.requirements.txt
  COPY gunicorn.conf /gunicorn.conf
  
  COPY . /app
  
  
  
  EXPOSE 8000
  
  
  RUN ls
  
  ENV FLASK_ENV=development
  
  CMD ["python ./someOtherFolder/thingIwantToRun.py"]
  </code></pre>
  
  <p>This gives me this error when I start the container -</p>
  
  <pre><code>docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"ls ./someOtherFolder\": stat ls ./someOtherFolder: no such file or directory": unknown.
  </code></pre>
  
  <p>When I change the <code>CMD</code> command into something else which doesn't fail and I jump into the container I see that my folder is indeed there.</p>
  
  <p>When I add a <code>RUN ls</code> into my Dockerfile, I can still see my folder.</p>
  
  <p>If it exists, why can't I run it? </p>
  
  <p>UPDATE -</p>
  
  <p>If I move <code>thingIWantToRun.py</code> into the top level folder and change my Docker <code>CMD</code> to </p>
  
  <p><code>CMD [python thingIWantToRun.py]</code></p>
  
  <p>I see the same issue. However, I can ssh into the container and verify that the file is there. </p>