Create Docker container with Nodev4.4.7 and Python3
<p>Trying to create a docker image that has Python3 and Node v4.4.7 so that I can use it as a container for my project that needs both Python and that version of Node. </p>

<pre><code># Pull base image.
FROM python:3-onbuild

CMD [ "python", "./hello.py" ]
# Install Node.js
RUN \
cd /tmp &amp;&amp; \
wget http://nodejs.org/dist/v4.4.7/node-v4.4.7.tar.gz &amp;&amp; \
tar xvzf node-v4.4.7.tar.gz &amp;&amp; \
rm -f node-v4.4.7.tar.gz &amp;&amp; \
cd node-v* &amp;&amp; \
./configure &amp;&amp; \
CXX="g++ -Wno-unused-local-typedefs" make &amp;&amp; \
CXX="g++ -Wno-unused-local-typedefs" make install &amp;&amp; \
cd /tmp &amp;&amp; \
rm -rf /tmp/node-v* &amp;&amp; \
npm install -g npm &amp;&amp; \
print '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' &gt;&gt;   /root/.bashrc

# Define working directory.
WORKDIR /data

# Define default command.
CMD ["bash"]
</code></pre>

<p>When I first tried it complained about not having a python script to run so added a basic python file: <code>hello.py</code>
that just has this:</p>

<pre><code>print "Hello, Python!"
</code></pre>

<p>Then it complains about not having a <code>requirements.txt</code> file so added an empty <code>requirements.txt</code></p>

<p>Now when I run <code>docker build -t isaacweathersnet/sampledockerimage .</code> it snafus during the node install with 
    <code>node-v4.4.0/benchmark/arrays/zero-int.js
     File "./configure", line 446
    '''
      ^
SyntaxError: Missing parentheses in call to 'print'
The command '/bin/sh -c cd /tmp &amp;&amp;   wget http://nodejs.org/dist/v4.4.7/node-v4.4.7.tar.gz &amp;&amp;   tar xvzf node-v4.4.7.tar.gz &amp;&amp;   rm -f node-v4.4.7.tar.gz &amp;&amp;   cd node-v* &amp;&amp;   ./configure &amp;&amp;   CXX="g++ -Wno-unused-local-typedefs" make &amp;&amp;   CXX="g++ -Wno-unused-local-typedefs" make install &amp;&amp;   cd /tmp &amp;&amp;   rm -rf /tmp/node-v* &amp;&amp;   npm install -g npm &amp;&amp;   print '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' &gt;&gt; /root/.bashrc' returned a non-zero code: 1
</code></p>