Browse Source

ci(other): cicd 4

Yi 1 year ago
parent
commit
8b8587dec4
1 changed files with 2 additions and 3 deletions
  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