Build aria2 from git master
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-10-14 14:23:25 +00:00
parent 82674732f4
commit 7b7ddc37b9
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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 FROM node:11 as webui
RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg
@ -20,6 +42,9 @@ RUN apk add --no-cache \
nginx \ nginx \
su-exec 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=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
COPY --from=webui /AriaNg/dist /srv/www/webui COPY --from=webui /AriaNg/dist /srv/www/webui