title: How to set environment variables via env-file
body: <p>I have a Dockerfile based on the spring guide about <a href="http://spring.io/guides/gs/spring-boot-docker/#_containerize_it" rel="noreferrer">docker</a>. My application consumes some private data, so I want to pass these parameters through environment variables. When I run a docker container:</p>
  
  <pre><code>docker run -p 8080:8080 -t myname/myapplication --env-file=~/env.list
  </code></pre>
  
  <p>it appears that the variables are not set and the application can't see them, what do I do wrong? How to pass these parameters?</p>
  
  <p><code>env.list:</code></p>
  
  <pre><code>ACCOUNT_ID=my_account_id
  ACCOUNT_PASSWORD=my_secret_password
  </code></pre>
  
  <p>My <code>ENTRYPOINT</code>:</p>
  
  <pre><code>ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar $APPLICATION_NAME
  </code></pre>