title: getting error /bin/sh: 1: source: not found
body: <p>I am trying to build docker and installing nvm</p>
  
  <p>some code line</p>
  
  <pre><code>RUN curl   https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash
      RUN source ~/.profile
  </code></pre>
  
  <p>curl run successfully but when running source, getting below error</p>
  
  <pre><code>/bin/sh: 1: source: not found
  The command '/bin/sh -c source ~/.profile' returned a non-zero code: 127
  </code></pre>