build: use domestic package registries

This commit is contained in:
2026-08-04 16:03:10 +08:00
parent ca11965e8f
commit 4b7ccb0a30
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json ./
RUN npm install
ARG NPM_REGISTRY=https://registry.npmmirror.com
RUN npm config set registry "$NPM_REGISTRY" && npm install
COPY . .
RUN npm run build