From 0458e1aa08e1c7ddf2c5820500a61f39d6808fe8 Mon Sep 17 00:00:00 2001 From: shangzy Date: Tue, 16 Jun 2026 11:20:55 +0800 Subject: [PATCH] chore: use npmmirror registry in Docker build --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a5bbf3..95db0fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM node:20 AS base -# 设置华为云 npm 镜像 -RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ +# 设置阿里系 npm 镜像 +RUN npm config set registry https://registry.npmmirror.com/ # --- Dependencies --- FROM base AS deps WORKDIR /app COPY package.json bun.lock ./ -RUN npm install --registry=https://mirrors.huaweicloud.com/repository/npm/ --fetch-timeout=120000 --fetch-retries=5 +RUN npm install --registry=https://registry.npmmirror.com/ --fetch-timeout=120000 --fetch-retries=5 # --- Build --- FROM base AS builder