Skip to content

Commit

Permalink
Create dockerfile (#235)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
seano-vs committed Nov 2, 2022
1 parent 7bd6253 commit d713d86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit d713d86

Please sign in to comment.