title: How to put the code to docker image while building
body: <p>I want to clone the code to docker image while building it</p>
  
  <p>I am thinking to pass the ssh keys while git clone, which is not working. below is the command i am using, showing permission denied</p>
  
  <pre><code>ssh-agent bash -c 'ssh-add /home/username/.ssh/id_rsa.pub my keys;  git clone ssh://git@location.git'
  </code></pre>
  
  <p>I can't use the cloning using https</p>
  
  <p>ALSO say if the code is cloned on image, CAN WE GIT PULL WHILE RUNNING IT ON CONTAINER </p>