mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Creating Dockerfile (#238)
This commit is contained in:
parent
3f19396fba
commit
15f5621928
|
|
@ -1,10 +1,14 @@
|
||||||
FROM alpine as builder
|
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 && \
|
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 && \
|
git clone https://github.com/ckolivas/lrzip.git && \
|
||||||
cd /lrzip && ./autogen.sh && ./configure && make -j `nproc` && make install
|
cd /lrzip && ./autogen.sh && ./configure && make -j `nproc` && make install
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN apk add --update --no-cache lzo libbz2 libstdc++ lz4-dev && \
|
RUN apk add --update --no-cache lzo libbz2 libstdc++ lz4-dev && \
|
||||||
rm -rf /tmp/* /var/tmp/*
|
rm -rf /tmp/* /var/tmp/*
|
||||||
|
|
||||||
COPY --from=builder /usr/local/bin/lrzip /usr/local/bin/lrzip
|
COPY --from=builder /usr/local/bin/lrzip /usr/local/bin/lrzip
|
||||||
CMD ["/usr/local/bin/lrzip"]
|
|
||||||
|
CMD ["/bin/sh"]
|
||||||
Loading…
Reference in a new issue