This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-04-19 19:17:09 +02:00
|
|
|
FROM node as webui
|
|
|
|
|
2019-05-14 07:19:32 +02:00
|
|
|
#RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
|
|
|
#WORKDIR /webui-aria2
|
|
|
|
#RUN npm install
|
|
|
|
#COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
|
|
|
#RUN npm run-script build
|
2019-04-19 19:17:09 +02:00
|
|
|
|
2019-04-22 00:56:05 +02:00
|
|
|
RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg
|
|
|
|
WORKDIR /AriaNg
|
|
|
|
RUN npm install \
|
|
|
|
&& npm -g install gulp \
|
|
|
|
&& npm install natives@1.1.6 \
|
|
|
|
&& gulp clean build-bundle
|
|
|
|
|
2019-04-19 19:17:09 +02:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
aria2 \
|
|
|
|
nginx \
|
|
|
|
su-exec
|
|
|
|
|
2019-04-23 23:11:46 +02:00
|
|
|
COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
|
|
|
|
|
2019-05-14 07:19:32 +02:00
|
|
|
#COPY --from=webui /webui-aria2/docs /srv/www/webui
|
2019-04-22 00:56:05 +02:00
|
|
|
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
2019-04-19 19:17:09 +02:00
|
|
|
|
|
|
|
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|