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