From 2c636a1c8b28d7cddcda96a39cbce5e159f3a22e Mon Sep 17 00:00:00 2001 From: ejose19 <8742215+ejose19@users.noreply.github.com> Date: Tue, 23 Feb 2021 12:01:49 -0300 Subject: [PATCH] Apply patch to build latest runc --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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