title: Build the docker image with environment variables
body: <p>so the objective is to have a different image for prod and testing so there are certain variables change accordingly so I need to set env variables during the build.</p>
  
  <pre><code># Dockerfile
  ENV Somename: $value
  ...
  </code></pre>
  
  <p><code>docker build --build-arg Somename=value -t test .</code></p>
  
  <p><code>docker run -d -p port:port test</code></p>
  
  <p>this work flow is not taking the env variables </p>