title: Dockerfile - How to append PATH using ENV instruction?
body: <p>The <code>ENV</code> instruction sets the environment variable  to the value . This value will be in the environment for all subsequent instructions in the build stage</p>
  <hr />
  <p>Below instruction:</p>
  <pre><code>   ENV PATH=$PATH:$HOME/go/bin
  </code></pre>
  <p>does not append <code>PATH</code> variable</p>
  <p><code>$HOME/go/bin</code> is <code>/root/go/bin</code></p>
  <p>How to append <code>$HOME/go/bin</code> to <code>$PATH</code>? in below docker file</p>
  <pre><code>FROM golang:1.14.10
  MAINTAINER xyz
  
  ENV GOPATH=
  
  ENV PATH=$PATH:$HOME/go/bin
  
  RUN echo $PATH
  </code></pre>