I'm looking to install nodejs via Dockerfile to a debian based container. I'm a little confused about the different distributions out there. I've come to the conclusion that I want the latest STABLE distribution.
Now, in nodesource/distributions#deb there are four different distributions (v0.10, v0.12, v4.x, v5.x). As far as I understand, I need v5.x (by reading this blog post, among other random stuff I googled). But everywhere I look for, people recommend to install v0.12 (which also is the latest stable, or LTS, I'm not sure) even though in the nodejs.com official site distributions the release is as of this time v5.0.0.
So, I've got 2 possible ways of installing, any help (please elaborate a little bit, maybe this is a dumb question but it is kind of confusing to me)
curl -sL https://deb.nodesource.com/setup_5.x | bash -
apt-get install -y nodejs
or
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
sudo apt-get install -y nodejs