title: How to read the content of CI CD Variable of type File into my docker container run on pipeline
body: <p>I have gitlab variable stored in a file format</p>
  <p>When I tried to access the file using my python code</p>
  <p>like</p>
  <pre><code>variable Key :  KEY_FILE value: 'hsdasds' 
  </code></pre>
  <p>in my python code <code>pack.py</code></p>
  <pre><code>with open($KEY_FILE) as f:
      f.read()
  </code></pre>
  <p>I get File not found error but its showing the file path when I did</p>
  <pre><code>before_script -echo ' $KEY_FILE'
  </code></pre>
  <p>My query is how can I read the content(I will read it in docker container as my python code will run in a docker container) of the file define in variable ..</p>
  <pre><code>docker run --rm -u $(id -u):$(id -g) -v &quot;$PWD&quot;:/mnt python 'executors/pack.py' &quot;$KEY_FILE&quot;
  </code></pre>