Parcourir la source

fix: npm ci报错修复

wuwenyi il y a 2 semaines
Parent
commit
1c63698b85
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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