diff --git a/Others/glibc/2.41/24.03-lts-sp1/Dockerfile b/Others/glibc/2.41/24.03-lts-sp1/Dockerfile index ebca19387025bd994ef8e83e65d684ca1cac141f..f6c26db70fccce872c64b6b4451d4f768869e1b0 100644 --- a/Others/glibc/2.41/24.03-lts-sp1/Dockerfile +++ b/Others/glibc/2.41/24.03-lts-sp1/Dockerfile @@ -8,19 +8,24 @@ RUN dnf update -y && \ gcc \ gcc-c++ \ make \ - git \ + wget \ + xz \ && dnf clean all \ && rm -rf /var/cache/dnf/* WORKDIR /opt -RUN git clone -b release/${VERSION}/master --depth=1 https://sourceware.org/git/glibc.git -WORKDIR /opt/glibc/build -RUN ../configure --prefix=/opt/glibc-${VERSION} && \ +RUN wget https://mirrors.tuna.tsinghua.edu.cn/gnu/glibc/glibc-${VERSION}.tar.xz \ + && tar -xvf glibc-${VERSION}.tar.xz \ + && rm -f glibc-${VERSION}.tar.xz + +WORKDIR /opt/glibc-${VERSION}/build + +RUN ../configure --prefix=/usr/local/glibc && \ make -j$(nproc) && \ make install FROM ${BASE} -ARG VERSION=2.41 -COPY --from=BUILDER /opt/glibc-${VERSION} /opt/glibc-${VERSION} -CMD ["/opt/glibc-2.41/bin/ldd", "--version"] +COPY --from=BUILDER /usr/local/glibc /usr/local/glibc +WORKDIR /usr/local/glibc +CMD ["./bin/ldd", "--version"]