Parcourir la source

feat:回退yarn.lock文件,使用npm安装项目依赖

zhangyi il y a 2 ans
Parent
commit
b056377e36
2 fichiers modifiés avec 332 ajouts et 333 suppressions
  1. 2 3
      Dockerfile
  2. 330 330
      yarn.lock

+ 2 - 3
Dockerfile

@@ -1,10 +1,9 @@
 FROM node:16 as builder
 FROM node:16 as builder
 WORKDIR /code
 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 package.json /code
 ADD yarn.lock /code
 ADD yarn.lock /code
-RUN yarn install
+RUN npm install
 ADD . /code
 ADD . /code
 RUN yarn build:prod
 RUN yarn build:prod
 
 

Fichier diff supprimé car celui-ci est trop grand
+ 330 - 330
yarn.lock


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff