diff --git a/docker/Dockerfile.frontend b/docker/Dockerfile.frontend index ccda5b6..71eea0e 100644 --- a/docker/Dockerfile.frontend +++ b/docker/Dockerfile.frontend @@ -2,6 +2,8 @@ FROM node:20-alpine WORKDIR /app +RUN npm config set registry https://registry.npmmirror.com + COPY package*.json ./ RUN npm install diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 477e746..1658972 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -17,15 +17,16 @@ FROM python:3.12-slim WORKDIR /app # 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 \ curl \ && rm -rf /var/lib/apt/lists/* # Copy Python dependencies COPY pyproject.toml ./ -RUN pip install --no-cache-dir --upgrade pip && \ - pip install --no-cache-dir -e . +RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && \ + pip install --no-cache-dir -e . -i https://pypi.tuna.tsinghua.edu.cn/simple # Copy application code COPY lang_agent/ ./lang_agent/