title: docker-compose doesn't build image from latest commit of git repository
body: <p>I have a git repository (the repository has Dockerfile and docker-entrypoint.sh) that I use as a context for building in docker-compose:</p>
  
  <pre><code> build:
        context: git@git.example.com/example/example-backend.git
  </code></pre>
  
  <p>When I run either one of the following:</p>
  
  <pre><code> 1. docker-compose build &amp;&amp; docker-compose up -d
   2. docker-compose build --no-cache &amp;&amp; docker-compose up -d
   3. docker-compose up -d --build
  </code></pre>
  
  <p>The image is being built from the repository but the files are not up to date with origin/master. They are the one from previous commit.</p>
  
  <p>I checked to see if pulling from git actually works. Doing</p>
  
  <pre><code> git clone git@git.example.com/example/example-backend.git
  </code></pre>
  
  <p>pulls from latest commit. </p>
  
  <p>What am I doing wrong? Docker doesn't work pull it from latest commit in git repository.</p>