Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Bruder 7b7ddc37b9
Build aria2 from git master
continuous-integration/drone/push Build is passing Details
2019-10-14 14:23:25 +00:00
Simon Bruder 82674732f4
Remove aria2-webui 2019-10-12 08:35:22 +00:00
1 changed files with 26 additions and 9 deletions

View File

@ -1,11 +1,26 @@
FROM node:11 as webui
FROM alpine as builder
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
WORKDIR /webui-aria2
RUN npm install node-sass \
&& npm install
COPY configuration.js /webui-aria2/src/js/services/configuration.js
RUN npm run-script build
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
WORKDIR /AriaNg
@ -27,10 +42,12 @@ 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 /webui-aria2/docs /srv/www/webui
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
COPY --from=webui /AriaNg/dist /srv/www/webui
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf