This commit is contained in:
parent
ed1087ca57
commit
0363273f7a
10
Dockerfile
10
Dockerfile
|
@ -1,13 +1,18 @@
|
||||||
FROM node as webui
|
FROM node as webui
|
||||||
|
|
||||||
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
||||||
|
|
||||||
WORKDIR /webui-aria2
|
WORKDIR /webui-aria2
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
||||||
RUN npm run-script build
|
RUN npm run-script build
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
|
@ -16,6 +21,7 @@ RUN apk add --no-cache \
|
||||||
su-exec
|
su-exec
|
||||||
|
|
||||||
COPY --from=webui /webui-aria2/docs /srv/www/webui
|
COPY --from=webui /webui-aria2/docs /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
|
||||||
|
|
|
@ -5,6 +5,7 @@ touch /data/torrents
|
||||||
chown $UID /data/torrents
|
chown $UID /data/torrents
|
||||||
|
|
||||||
su-exec $UID aria2c \
|
su-exec $UID aria2c \
|
||||||
|
--quiet \
|
||||||
--enable-rpc \
|
--enable-rpc \
|
||||||
--bt-save-metadata \
|
--bt-save-metadata \
|
||||||
--bt-load-saved-metadata \
|
--bt-load-saved-metadata \
|
||||||
|
|
Reference in a new issue