title: Pass python arguments (argparse) within Docker container
body: <p>I have a python script that i run with the following command :
  <code>python3 scan.py --api_token 5563ff177863e97a70a45dd4 --base_api_url http://101.102.34.66:4242/scanjob/ --base_report_url http://101.102.33.66:4242/ --job_id 42</code>
  This  works perfectly when I run it on the command line </p>
  
  <p>IN my Dockerfile , I have tried ARG and ENV . none seem to work </p>
  
  <pre><code>#ARG api_token
  #ARG username
  #ARG password
  
  # Configure AWS arguments
  #RUN aws configure set aws_access_key_id $AWS_KEY \
   #   &amp;&amp; aws configure set aws_secret_access_key $AWS_SECRET_KEY \
    #  &amp;&amp; aws configure set default.region $AWS_REGION
  
  ### copy bash script and change permission
  RUN mkdir workspace
  COPY scan-api.sh /workspace
  RUN chmod +x  /workspace/scan-api.py
  CMD ["/python3", "/workspace/scan-api.py"]
  </code></pre>
  
  <p>so how do i define this flagged argument in docker file ?
  And whats the command run when running the image ?</p>