add nodejs installation in devel dockerfile

This commit is contained in:
shenghong96 2021-05-26 16:12:45 +08:00
parent e4c065b53f
commit 53338cea11
1 changed files with 14 additions and 1 deletions

View File

@ -91,4 +91,17 @@ RUN cd /tmp \
&& make -j4 \ && make -j4 \
&& make install -j4 \ && make install -j4 \
&& rm -rf /tmp/openmpi-4.0.3 \ && 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