title: Installing specific version of node.js and npm in ubuntu image with Dockerfile
body: <p>I would like to know how can update my custom Dockerfile to install Node v6.3.1 and NPM v3.10.6 without breaking what is already in there.</p>
  
  <p>Currently this is my custom file:</p>
  
  <pre><code>FROM         ubuntu:16.10
  
  MAINTAINER   Fátima Alves
  
  COPY         . /my-software
  WORKDIR        /my-software
  
  RUN          apt-get update          \
                                    &amp;&amp; \
               apt-get install -y      \
                 python-dev            \
               tesseract-ocr
  </code></pre>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>Update </p>
  
  <p>Currently my dockerfile is like this:</p>
  
  <pre><code>FROM         ubuntu:16.10
  
  MAINTAINER   Fátima Alves
  
  COPY         ./dist            /my-software
  COPY         ./s3-config.json  /my-software
  COPY         ./_*              /my-software
  COPY         ./node_modules    /my-software
  WORKDIR                        /dataextractor
  
  RUN          apt-get update          \
                                    &amp;&amp; \
               apt-get install -y      \
               curl
  
  RUN         curl -sL https://deb.nodesource.com/setup_6.x | bash - \
              &amp;&amp; apt-get install -y nodejs
  </code></pre>
  
  <p>And is returning:</p>
  
  <pre><code>The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_6.x | bash -             &amp;&amp; apt-get install -y nodejs' returned a non-zero code: 1
  </code></pre>
  
  <p>Perhaps i'm missing something?</p>