title: How to fix the issue regarding docker-compose can't open file?
body: <p>I am not able to find a solution to an issue with docker-compose, the issue basically is that when the container is launched from docker-compose it says that a file is not found, please see the details below:</p>
  <p><strong>command</strong>:</p>
  <pre><code>docker-compose build --no-cache --force-rm --pull &amp;&amp; docker-compose up --force-recreate --always-recreate-deps --build --renew-anon-volumes --remove-orphans
  </code></pre>
  <p><strong>docker-compose.yml</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>version: &quot;3.9&quot;
  services:
    api:
      container_name: api
      build:
        context: './dockerFolder'
      volumes:
        - /home/user/my_user:/app
  </code></pre>
  <p><strong>Dockerfile</strong></p>
  <pre class="lang-sh prettyprint-override"><code>FROM python:3
  
  # Cloning repository
  RUN git clone MY_REPOSITORY_URL /app
  
  # Installing project requirements
  WORKDIR /app
  RUN pip install -r requirements.txt
  
  # Run app on container creation
  CMD [ &quot;python&quot;, &quot;src/app.py&quot; ]
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>python: can't open file '/app/src/app.py': [Errno 2] No such file or directory
  </code></pre>