Selaa lähdekoodia

ci(other): cicd 4

Yi 1 vuosi sitten
vanhempi
commit
8b8587dec4
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      Dockerfile

+ 2 - 3
Dockerfile

@@ -3,11 +3,10 @@ WORKDIR /app/kpt-system-web
 #拷贝源码
 COPY . .
 #安装依赖
-RUN npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
-RUN npm install
+RUN pnpm install
 
 # 开始构建
-RUN npm run build
+RUN pnpm run build
 
 # 第二阶段构建
 FROM nginx:alpine as prod