diff --git a/Dockerfile b/Dockerfile index 99cbf3b2..990ecc52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,19 @@ WORKDIR /app COPY ../ . +# Temporary patch +RUN if [[ $(uname -m) = "x86_64" ]]; then \ + patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \ + curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \ + bsdtar -C / -xvf "$patched_glibc" && \ + sed -i "s/#\(IgnorePkg =\)/\1 glibc/" /etc/pacman.conf && \ + rm /usr/include/crypt.h /usr/lib/libcrypt.so; \ + fi + RUN echo "keyserver hkp://keyserver.ubuntu.com" >> /etc/pacman.d/gnupg/gpg.conf +RUN sed -i 's/CheckSpace/#CheckSpace/g' /etc/pacman.conf +RUN echo "[options]" >> /etc/pacman.conf +RUN echo "NoExtract = etc/hosts etc/resolv.conf" >> /etc/pacman.conf RUN pacman -Sy --noconfirm archlinux-keyring RUN pacman -Su --noconfirm rust RUN ls -la