Download gmp and nettle with aria2 using USTC and Tsinghua mirrors

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-10-21 12:14:46 +08:00
1 parent 97dc5c4561
commit 86f11507e1
1 file changed
+8 -2
+8 -2
View File
@@ -609,8 +609,11 @@ RUN curl --fail --location --output hiredis.tar.gz \
&& cmake --build build --parallel "$(nproc)" --target install \ && cmake --build build --parallel "$(nproc)" --target install \
&& rm -rf build src && rm -rf build src
RUN curl --fail --location --output gmp.tar.xz \ RUN aria2c \
--max-connection-per-server=1 --retry-wait=3 \
--out=gmp.tar.xz \
https://mirrors.ustc.edu.cn/gnu/gmp/gmp-6.3.0.tar.xz \ https://mirrors.ustc.edu.cn/gnu/gmp/gmp-6.3.0.tar.xz \
https://mirrors.tuna.tsinghua.edu.cn/gnu/gmp/gmp-6.3.0.tar.xz \
&& mkdir src \ && mkdir src \
&& tar --extract --xz --file=gmp.tar.xz --directory=src --strip-components=1 \ && tar --extract --xz --file=gmp.tar.xz --directory=src --strip-components=1 \
&& rm gmp.tar.xz \ && rm gmp.tar.xz \
@@ -621,8 +624,11 @@ RUN curl --fail --location --output gmp.tar.xz \
&& cd .. \ && cd .. \
&& rm -rf src && rm -rf src
RUN curl --fail --location --output nettle.tar.gz \ RUN aria2c \
--max-connection-per-server=1 --retry-wait=3 \
--out=nettle.tar.gz \
https://mirrors.ustc.edu.cn/gnu/nettle/nettle-3.10.2.tar.gz \ https://mirrors.ustc.edu.cn/gnu/nettle/nettle-3.10.2.tar.gz \
https://mirrors.tuna.tsinghua.edu.cn/gnu/nettle/nettle-3.10.2.tar.gz \
&& mkdir src \ && mkdir src \
&& tar --extract --gzip --file=nettle.tar.gz --directory=src --strip-components=1 \ && tar --extract --gzip --file=nettle.tar.gz --directory=src --strip-components=1 \
&& rm nettle.tar.gz \ && rm nettle.tar.gz \