I need to create a ubuntu docker image with nodeJS 4. What I was doing is this:
FROM ubuntu:16.04
RUN apt-get update -y && \
apt-get install -yqq python build-essential apt-transport-https ca-certificates curl locales nodejs npm sudo git
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
But does that make sense at all? Installing apt-get install nodejs npm
and curl -sL https://deb.nodesource.com/setup_4.x | bash -
And also I have to do update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
I would like to get this a bit smaller and smarter.
via user3142695
No comments:
Post a Comment