Build aria2 from git master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
82674732f4
commit
7b7ddc37b9
25
Dockerfile
25
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
|
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
|
||||||
|
|
Reference in a new issue