add 国内源(阿里云)
All checks were successful
Build and Deploy Backend / build-and-deploy (push) Successful in 1m49s

This commit is contained in:
zyc 2026-01-29 15:29:37 +08:00
parent ded5be6a05
commit 1f0747e13d

View File

@ -9,7 +9,8 @@ ENV PYTHONUNBUFFERED=1
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/debian.sources && \
apt-get update && apt-get install -y \
gcc \ gcc \
default-libmysqlclient-dev \ default-libmysqlclient-dev \
pkg-config \ pkg-config \
@ -17,7 +18,8 @@ RUN apt-get update && apt-get install -y \
# Install python dependencies # Install python dependencies
COPY requirements.txt /app/ COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \
pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn
# Copy project # Copy project
COPY . /app/ COPY . /app/