title: How to pass command line argument from oc start-build to dockerfile to set environment variable inside dockerfile
body: <p>Used the below commands but the value for environment is not getting passed in Dockerfile.
  Running these instances in oc container through groovy script:</p>
  
  <p><code>oc start-build -e environment=ipte2 ipte2-isell-api-7 --from-dir=./isell-python-wrapper --follow=true</code></p>
  
  <pre><code>**WARNING**: Specifying environment variables with binary builds is not supported.
  Uploading directory "isell-python-wrapper" as binary input for the build ...
  build "ipte2-isell-api-7-1" started
  2)oc start-build --build-arg environment=ipte2 ipte2-isell-api-5 --from-dir=./isell-python-wrapper --follow=true
  
  **WARNING**: Specifying build arguments with binary builds is not supported.
  Uploading directory "isell-python-wrapper" as binary input for the build ...
  build "ipte2-isell-api-5-1" started
  
  error
  Removing intermediate container f7ff031b18b1
  Step 35/44 : COPY script/${environment}-local.conf /sum/lpp/ebb/local.conf
  error: build error: lstat script/-local.conf: no such file or directory
  </code></pre>
  
  <p>Dockerfile </p>
  
  <pre><code>FROM wlp-base:0.1 #from statement base image
  ARG environment
  
  ENV environment=${environment}
  
  COPY script/${environment}-local.conf
  </code></pre>
  
  <p>I need to pass above environment value inside the copy command 
  if i pass <code>ENV environment=ipte2</code>
  directly inside Dockerfile its working fine. But sending a command line argument, it doesn't get it.</p>