title: How to write files from Docker image to EFS?
body: <h2>Composition</h2>
  
  <ul>
  <li>Jenkins server on EC2 instance, uses EFS</li>
  <li>Docker image for above Jenkins server  </li>
  </ul>
  
  <h2>Need</h2>
  
  <ul>
  <li>Write templates to directory on EFS each time ECS starts the task which builds the Jenkins server</li>
  </ul>
  
  <p><strong>Where is the appropriate place to put a step to do the write?</strong></p>
  
  <h2>Tried</h2>
  
  <p>If I do it in the Dockerfile, it writes to the Docker image, but never propagates the changes to EFS so that the templates are available as projects on the Jenkins server.</p>
  
  <p>I've tried putting the write command in <code>jenkins.sh</code> but I can't figure out how that is run, anyway it doesn't place the templates where I need them.</p>