From 37887c976ab2cbb78f0d10ae433b0c742d780464 Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Thu, 5 Sep 2024 12:37:28 -0400 Subject: [PATCH] feat(docker): add infinite-file-curtailer to image (#2386) * feat(docker): add infinite-file-curtailer to image * multi-stage build --- Dockerfile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 18c996cead..261dac7ad2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,19 @@ +FROM debian:bookworm-slim as builder + +RUN apt-get update && apt install -y git libtool automake autoconf make + +RUN git clone https://github.com/Comcast/Infinite-File-Curtailer.git curtailer \ + && cd curtailer \ + && libtoolize \ + && aclocal \ + && autoheader \ + && autoconf \ + && automake --add-missing \ + && ./configure \ + && make \ + && make install \ + && curtail --version + FROM debian:bookworm-slim as base ARG TARGETPLATFORM @@ -11,6 +27,8 @@ COPY --from=artifacts $TARGETPLATFORM/katana /usr/local/bin/katana COPY --from=artifacts $TARGETPLATFORM/sozo /usr/local/bin/sozo COPY --from=artifacts $TARGETPLATFORM/torii /usr/local/bin/torii +COPY --from=builder /usr/local/bin/curtail /usr/local/bin/curtail + RUN chmod +x /usr/local/bin/katana \ && chmod +x /usr/local/bin/sozo \ - && chmod +x /usr/local/bin/torii \ No newline at end of file + && chmod +x /usr/local/bin/torii