From 7b7ddc37b9c8e8cfdd5ff7ebb99e8b38a2f7224e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 14 Oct 2019 14:23:25 +0000 Subject: [PATCH] Build aria2 from git master --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1a76b4f..611cb1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,25 @@ +FROM alpine as builder + +RUN apk add --no-cache \ + autoconf \ + automake \ + build-base \ + c-ares-dev \ + expat-dev \ + gettext-dev \ + git \ + libtool \ + openssl-dev \ + pkgconf \ + sqlite-dev + +RUN git clone --depth=1 https://github.com/aria2/aria2 + +RUN cd aria2 \ + && autoreconf -i \ + && ./configure \ + && make -j 4 + FROM node:11 as webui RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg @@ -20,6 +42,9 @@ RUN apk add --no-cache \ nginx \ su-exec +RUN apk add --no-cache libintl +COPY --from=builder /aria2/src/aria2c /usr/local/bin/ + COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter COPY --from=webui /AriaNg/dist /srv/www/webui