installation of nodejs returned a non-zero code: 1 with docker build
<p>I'm trying to build a docker image with the following dockerfile:</p>

<pre><code>FROM         ubuntu:16.10

MAINTAINER   Fátima Alves

COPY         ./dist /myprogram/
WORKDIR      /myprogram


RUN          apt-get update          \
                                  &amp;&amp; \
             apt-get install -y      \
               curl                  \
                                  &amp;&amp; \
             curl -sL https://deb.nodesource.com/setup_6.x | bash - \
                                  &amp;&amp; \
             apt-get install -y      \
               python-dev            \
               libxml2-dev           \
               libxslt1-dev
</code></pre>

<p>And no matter what i do, this message is appearing in the terminal:</p>

<pre><code>curl -sL https://deb.nodesource.com/setup_6.x | bash -' returned a non-zero code: 1
</code></pre>

<p>I'm not finding anything related in google.</p>

<p>Thanks!</p>