From a45cfc1889d3a7597ce67879f89d9d3cf4bd9f98 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 20 Jul 2023 16:52:32 +0530 Subject: [PATCH] fix: install GLIBC v2.29 before running binary --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 020b720..e08493a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,15 @@ RUN cargo build --release # Copy the binary into a new container for a smaller docker image FROM debian:buster-slim +RUN wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz +RUN tar -zxvf glibc-2.29.tar.gz +RUN cd glibc-2.29 +RUN mkdir build_dir +RUN cd build_dir +RUN sudo ../configure --prefix=/opt/glibc +RUN sudo make +RUN sudo make install + COPY --from=build /ruck/target/release/ruck / USER root