From e62127f67290817bd3da7a9f350ddccc0be1f6d8 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Mon, 11 Mar 2019 01:08:49 -0300 Subject: [PATCH] install prebuilt nodejs --- Dockerfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3bbc1ab..e2ef546 100644 --- a/Dockerfile +++ b/Dockerfile @@ -139,15 +139,9 @@ RUN wget https://cmake.org/files/v$CMAKE_VER_MAJ/cmake-$CMAKE_VER.tar.gz \ ENV CMAKE_ROOT /usr/local/share/cmake-$CMAKE_VER_MAJ -# node https://nodejs.org/en/ -ENV NODE_VER 10.15.3 - -RUN wget https://github.com/nodejs/node/archive/v$NODE_VER.tar.gz \ - && tar xf v$NODE_VER.tar.gz && cd node-$NODE_VER \ - && ./configure \ - && make -j"$(nproc --all)" \ - && make -j"$(nproc --all)" install \ - && cd .. && rm -f v$NODE_VER.tar.gz && rm -rf node-$NODE_VER +# node https://nodejs.org/en/ - https://tecadmin.net/install-latest-nodejs-and-npm-on-centos/ +RUN curl -sL https://rpm.nodesource.com/setup_10.x | bash - +RUN yum install -y nodejs # reinstall npm with the lastest version # Workaround https://github.com/npm/npm/issues/15558