title: How to append to path in dockerfile or docker run
body: <p>So I have written a dockerfile and when I run the image the PATH is</p>
  
  <pre><code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  </code></pre>
  
  <p>I want to add another entry to the PATH so in my dockerfile I tried</p>
  
  <pre><code>ENV PATH="${PATH}:/some/new/path"
  </code></pre>
  
  <p>However when I tried that the PATH changed to include my personal path (with <code>/some/new/path</code> appended). How do I arrange it so that <code>/some/new/path</code> is appended without changing the rest of the PATH to my personal PATH?</p>
  
  <p>The docker image is being run with <code>--entrypoint /bin/bash</code> and argument <code>--norc</code> which I'd prefer not to change if possible. </p>
  
  <p>I'm using Ubuntu 14.04.</p>