perf: switch all mirrors including security to Taiwan to eliminate build delays

This commit is contained in:
sky121113 2026-04-16 15:46:58 +08:00
parent 2c04a55bfb
commit 5d4c9b018d

View File

@ -17,7 +17,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=0
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN sed -i 's/archive.ubuntu.com/tw.archive.ubuntu.com/g' /etc/apt/sources.list.d/ubuntu.sources || sed -i 's/archive.ubuntu.com/tw.archive.ubuntu.com/g' /etc/apt/sources.list RUN sed -i 's/\(archive.ubuntu.com\|security.ubuntu.com\)/tw.archive.ubuntu.com/g' /etc/apt/sources.list.d/ubuntu.sources || sed -i 's/\(archive.ubuntu.com\|security.ubuntu.com\)/tw.archive.ubuntu.com/g' /etc/apt/sources.list
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \ RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \ echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \