build: use domestic package registries
This commit is contained in:
+2
-1
@@ -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
@@ -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