!17013 add nodejs installation in devel dockerfile
Merge pull request !17013 from shenghong96/devel_master
This commit is contained in:
commit
1e9786e7a8
|
@ -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
|
Loading…
Reference in New Issue