title: Creating a host directory as a data volume in Dockerfile
body: <p>So when running the command for the container, I can create the host volume mount that I want with the command </p>
  
  <pre><code>docker run -d -P --name web -v /home/ec2-user:/home/ec2-user testing123 
  </code></pre>
  
  <p>How can I turn that <code>/src/webapp:/opt/webapp</code> host directory into an argument inside of the Dockerfile? Can I use <code>VOLUME</code> to create this type of storage? </p>
  
  <p>The reason I am asking is that when I tried to add it in with the arguments</p>
  
  <pre><code>VOLUME ["/home/ec2-user/:/home/ec2-user/" ]
  </code></pre>
  
  <p>It creates the directory inside of the container with no files except a :. How would I structure this argument to work with it?</p>