Skip to content

Commit

Permalink
install prebuilt nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Mar 11, 2019
1 parent ed33faf commit e62127f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e62127f

Please # to comment.