Sfoglia il codice sorgente

fix: npm ci报错修复

wuwenyi 2 settimane fa
parent
commit
1c63698b85
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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