使用npm安装项目依赖
@@ -1,10 +1,9 @@
FROM node:16 as builder
WORKDIR /code
-RUN yarn config set registry https://repo.nju.edu.cn/repository/npm/
-RUN yarn config set network-timeout 60000
+RUN npm config set registry https://registry.npmmirror.com
ADD package.json /code
ADD yarn.lock /code
-RUN yarn install
+RUN npm install
ADD . /code
RUN yarn build:prod