diff --git a/docker/mindspore-gpu/devel/Dockerfile b/docker/mindspore-gpu/devel/Dockerfile index d23c7da6b30..f8f4bf7ffa0 100644 --- a/docker/mindspore-gpu/devel/Dockerfile +++ b/docker/mindspore-gpu/devel/Dockerfile @@ -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 \ No newline at end of file + && 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 \ No newline at end of file