title: How to parameterize Dockerfile?
body: <p>I'm creating a Dockerfile for our Spring Boot application. The application takes a couple of command line parameters. At the end of <code>Dockfile</code>:</p>
  
  <blockquote>
    <p>CMD java -jar Application.jar --bucket=bucket.list --key=lost</p>
  </blockquote>
  
  <p>But is it a best practice to hardcode the values for <code>bucket</code> and <code>key</code> in the <code>Dockfile</code>?</p>
  
  <p>If it is ok, then I can live with that. Otherwise, I would like to know how to parameterize the <code>Dockfile</code>.</p>
  
  <p>The application will be deployed on AWS, if that opens the door for more suggestions.</p>