fix: install GLIBC v2.29 before running binary

This commit is contained in:
Erica Marigold 2023-07-20 16:52:32 +05:30 committed by GitHub
parent a21ecafb0d
commit a45cfc1889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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