Yi 1 жил өмнө
parent
commit
6ffb27eb05
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -3,7 +3,8 @@ WORKDIR /app/tmr-group-admin
 #拷贝源码
 COPY . .
 #安装依赖
-RUN npm install --registry=https://registry.npm.taobao.org
+RUN npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
+RUN npm install
 
 # 开始构建
 RUN npm run build:prod