FROM alpine as builder RUN apk add --no-cache build-base git RUN git clone --depth=1 https://github.com/mon/s3p_extract \ && cd s3p_extract \ && gcc -Wall -Werror s3p_extract.c -static -o s3p_extract FROM alpine COPY --from=builder /s3p_extract/s3p_extract /usr/local/bin/ ENTRYPOINT ["/usr/local/bin/s3p_extract"]