fix: add China registry mirrors for npm and pip in Dockerfiles

web-admin npm ci was timing out on the server. Added npmmirror.com
for npm and tsinghua mirror for pip to resolve network issues.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-19 04:59:09 -08:00
parent 84b3e5ff7b
commit b382e6e469
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ FROM node:18-alpine AS builder
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm config set registry https://registry.npmmirror.com && npm ci
COPY . . COPY . .

View File

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY src/ ./src/ COPY src/ ./src/