소스 검색

fix: npm ci报错修复

wuwenyi 2 주 전
부모
커밋
1c63698b85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -1,7 +1,7 @@
 FROM node:18-alpine AS build
 WORKDIR /app
 COPY package*.json ./
-RUN npm ci
+RUN npm config set registry https://registry.npmmirror.com && npm install
 COPY . .
 RUN npm run build