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
|
||||
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
|
||||
|
|
Reference in New Issue