Explorar o código

fix: npm ci报错修复

wuwenyi hai 2 semanas
pai
achega
1c63698b85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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