Explorar el Código

ci(other): cicd 4

Yi hace 1 año
padre
commit
8b8587dec4
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  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