Skip to content

Commit

Permalink
feat(docker): add infinite-file-curtailer to image (#2386)
Browse files Browse the repository at this point in the history
* feat(docker): add infinite-file-curtailer to image

* multi-stage build
  • Loading branch information
steebchen authored Sep 5, 2024
1 parent c5665d9 commit 37887c9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
&& chmod +x /usr/local/bin/torii

0 comments on commit 37887c9

Please sign in to comment.