build: use domestic package registries
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user