fix: accelerate staging apt installs
Deploy staging to test server / deploy (push) Has been cancelled

This commit is contained in:
linmeng
2026-07-28 17:21:32 +08:00
parent e1fb1777ec
commit d81713527b
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ ENV PYTHONUNBUFFERED=1 \
WORKDIR /app
COPY requirements.txt ./
RUN apt-get update \
RUN sed -i 's|http://deb.debian.org|https://mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources \
&& apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 update \
&& apt-get install -y --no-install-recommends build-essential \
&& python -m pip install -r requirements.txt \
&& apt-get purge -y --auto-remove build-essential \