add chinese mirror

This commit is contained in:
2026-03-12 20:33:11 +08:00
parent 2c226e2df2
commit 87407e1656
2 changed files with 6 additions and 3 deletions

View File

@@ -2,6 +2,8 @@ FROM node:20-alpine
WORKDIR /app WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install

View File

@@ -17,15 +17,16 @@ FROM python:3.12-slim
WORKDIR /app WORKDIR /app
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y \ RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/*.list /etc/apt/sources.list && \
apt-get update && apt-get install -y \
postgresql-client \ postgresql-client \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy Python dependencies # Copy Python dependencies
COPY pyproject.toml ./ COPY pyproject.toml ./
RUN pip install --no-cache-dir --upgrade pip && \ RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install --no-cache-dir -e . pip install --no-cache-dir -e . -i https://pypi.tuna.tsinghua.edu.cn/simple
# Copy application code # Copy application code
COPY lang_agent/ ./lang_agent/ COPY lang_agent/ ./lang_agent/