!17013 add nodejs installation in devel dockerfile

Merge pull request !17013 from shenghong96/devel_master
This commit is contained in:
i-robot 2021-06-16 17:46:57 +08:00 committed by Gitee
commit 1e9786e7a8
1 changed files with 14 additions and 1 deletions

View File

@ -91,4 +91,17 @@ RUN cd /tmp \
&& make -j4 \
&& make install -j4 \
&& rm -rf /tmp/openmpi-4.0.3 \
&& rm -f /tmp/openmpi-4.0.3.tar.gz
&& rm -f /tmp/openmpi-4.0.3.tar.gz
# Install nodejs
RUN cd /tmp \
&& wget https://mirrors.huaweicloud.com/nodejs/v12.18.4/node-v12.18.4-linux-x64.tar.gz \
&& tar -zxf node-v12.18.4-linux-x64.tar.gz \
&& rm -rf /usr/local/nodejs \
&& mkdir -p /usr/local/nodejs \
&& mv /tmp/node-v12.18.4-linux-x64 /usr/local/nodejs/ \
&& chmod 755 -R /usr/local/nodejs \
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/node /usr/bin/node \
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/npm /usr/bin/npm \
&& npm config set registry https://registry.npm.taobao.org/ \
&& rm -f /tmp/node-v12.18.4-linux-x64.tar.gz