title: How do I run the eval $(envkey-source) command in docker using Dockerfile?
body: <p>I want to run a command, <code>eval $(envkey-source)</code> for setting certain environment variables using <a href="https://www.envkey.com/" rel="nofollow noreferrer">envkey</a>. I install it, set my <code>ENVKEY</code> variable and then try to import all the environment variables. I do this all via Docker. However, docker is giving an error in this command:</p>
  
  <pre><code>Step 31/35 : RUN     eval $(envkey-source)
   ---&gt; Running in 6a9ebf1ede96
  /bin/sh: 1: export: : bad variable name
  The command '/bin/sh -c eval $(envkey-source)' returned a non-zero code: 2
  </code></pre>
  
  <p>I tried reading the documentation of envkey but they tell nothing about Docker.</p>
  
  <p>I have installed envkey using following commands:</p>
  
  <pre><code>ENV     ENVKEY=yada_yada
  RUN     curl -s https://raw.githubusercontent.com/envkey/envkey-source/master/install.sh | bash
  </code></pre>
  
  <p>Until here, all goes well. I get verbose of suggestions on the console about how to run the envkey to get all the environment variables set.
  The problem comes on this side:</p>
  
  <pre><code>RUN     eval $(envkey-source)
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Step 31/35 : RUN     eval $(envkey-source)
   ---&gt; Running in 6a9ebf1ede96
  /bin/sh: 1: export: : bad variable name
  The command '/bin/sh -c eval $(envkey-source)' returned a non-zero code: 2
  </code></pre>