title: ADD failed: file not found in build context
body: <p>I am currently in the root of my project.</p>
  <p><a href="https://i.stack.imgur.com/i79ZL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i79ZL.jpg" alt="enter image description here" /></a></p>
  <p>My goal is to try to run my front-end (front.py) and my back-end(API.py) in a docker container using the command</p>
  <pre><code> sudo docker-compose -f project/docker/docker-compose.yml up -d
  </code></pre>
  <p>Unfortunately, it stops when it comes time to ADD ./requirements.txt / in the Dockerfile and cant seem to find it.</p>
  <pre><code>enter Building api-service-track-1
  Sending build context to Docker daemon  3.072kB
  Step 1/5 : FROM python:3
   ---&gt; a42e2a4f3833
  Step 2/5 : ADD ./requirements.txt /
  ADD failed: file not found in build context or excluded by .dockerignore: stat requirements.txt: file does not exist
  ERROR: Service 'api-service-track-1' failed to build : Build failed
  </code></pre>
  <p>requirements.txt contains</p>
  <pre><code>Flask==1.1.2
  Flask-SQLAlchemy
  Flask-Bcrypt
  bleach
  </code></pre>
  <p>and this is my Dockerfile</p>
  <pre><code>FROM python:3
  ADD ./requirements.txt /
  RUN pip3 install -r requirements.txt
  WORKDIR /mnt/app/
  CMD [&quot;./run.sh&quot;, &quot;./project/codeAPI/API.py&quot;, &quot;./project/codeAPI/front.py&quot;]
  </code></pre>
  <p>edit:
  @DavidMaze Here's the code of my docker-compose.yml</p>
  <pre><code>version: '3'
  
  services:
    api-service-track-1:
      build:
        context: ./
        dockerfile: ./Dockerfile
      image: img_track1
      volumes:
        - ./:/mnt/app
      ports:
        - 5551:5551
  </code></pre>
  <p>edit 2:
  This is the error I get after trying to launch docker.</p>
  <pre><code>Starting docker_api-service-track-1_1 ... error
  
  ERROR: for docker_api-service-track-1_1  Cannot start service api-service-track-1: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: &quot;./run.sh&quot;: stat ./run.sh: no such file or directory: unknown
  
  ERROR: for api-service-track-1  Cannot start service api-service-track-1: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: &quot;./run.sh&quot;: stat ./run.sh: no such file or directory: unknown
  ERROR: Encountered errors while bringing up the project.
  </code></pre>
  <p>Does that mean I need to also change my run.sh directory?</p>
  <p>edit 3:
  run.sh</p>
  <pre><code>#!/bin/bash
  
  export PYTHONPATH=$PWD/project/
  echo python path is:
  echo $PYTHONPATH
  
  echo running the following python program
  echo $@
  python3 &quot;$1&quot;
  python3 &quot;$2&quot;
  </code></pre>