From d713d86af1a35251082469b16979136ceb635ed0 Mon Sep 17 00:00:00 2001 From: Sean <64788907+seano-vs@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:38:57 -0400 Subject: [PATCH] Create dockerfile (#235) * Create dockerfile Credit goes to @andyceo for making the initial one, I fixed it so it works now. * Update Dockerfile add lz4-dev to last layer --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6b02adc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine as builder +RUN apk add --update git autoconf automake libtool gcc musl-dev zlib-dev bzip2-dev lzo-dev coreutils make g++ lz4-dev && \ + git clone https://github.com/ckolivas/lrzip.git && \ + cd /lrzip && ./autogen.sh && ./configure && make -j `nproc` && make install + +FROM alpine +RUN apk add --update --no-cache lzo libbz2 libstdc++ lz4-dev && \ + rm -rf /tmp/* /var/tmp/* +COPY --from=builder /usr/local/bin/lrzip /usr/local/bin/lrzip +CMD ["/usr/local/bin/lrzip"]