Compare commits
2 commits
ed38197304
...
7b7ddc37b9
Author | SHA1 | Date | |
---|---|---|---|
Simon Bruder | 7b7ddc37b9 | ||
Simon Bruder | 82674732f4 |
35
Dockerfile
35
Dockerfile
|
@ -1,11 +1,26 @@
|
||||||
FROM node:11 as webui
|
FROM alpine as builder
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
RUN apk add --no-cache \
|
||||||
WORKDIR /webui-aria2
|
autoconf \
|
||||||
RUN npm install node-sass \
|
automake \
|
||||||
&& npm install
|
build-base \
|
||||||
COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
c-ares-dev \
|
||||||
RUN npm run-script build
|
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
|
RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg
|
||||||
WORKDIR /AriaNg
|
WORKDIR /AriaNg
|
||||||
|
@ -27,10 +42,12 @@ 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 /webui-aria2/docs /srv/www/webui
|
COPY --from=webui /AriaNg/dist /srv/www/webui
|
||||||
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
|
||||||
|
|
||||||
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
Reference in a new issue