title: Docker copy file to host, after entrypoint execution
body: <p>I have a docker file, that creates an image of my automation project that runs maven to execute some tests, how can I copy something from docker back to host AFTER those tests were executed ? Simply adding copy command in Dockerfile, after ENTRYPOINT will start copying straight after executing first command from entrypoint command.</p>
  
  <p><strong><em>Dockerfile:</em></strong></p>
  
  <pre><code>ADD src /usr/src/app/src/
  ADD features /usr/src/app/features/
  ADD Config.properties /usr/src/app/
  
  ENTRYPOINT ["sh", "/usr/local/bin/mvn-entrypoint.sh"]
  </code></pre>
  
  <p><strong><em>mvn-entrypoint.sh</em></strong></p>
  
  <pre><code>#!/bin/bash
  
  echo "PLEASE WAIT..."
  sleep 10
  echo "STARTING AUTOMATION TESTING"
  mvn verify -q -D browser=chrome
  exec "$@"
  </code></pre>