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
@@ -6,7 +6,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install --no-cache-dir --index-url "$PIP_INDEX_URL" -r requirements.txt
COPY . .
+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