forked from XUJINKAI/aria2-with-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:edge
MAINTAINER mushanyoung <[email protected]>
ADD aria2.conf init /
RUN mkdir -p /conf /data /watch \
&& chmod 755 /init \
&& apk add --upgrade --no-cache s6 aria2 darkhttpd inotify-tools python3 py3-pip \
&& pip install aria2p \
&& apk add --upgrade --no-cache --virtual .install-deps curl jq unzip git \
&& curl -o /aria2ng.zip -L $(curl -sX GET 'https:/api.github.com/repos/mayswind/AriaNg/releases/latest' | jq -r '.assets[0].browser_download_url') \
&& unzip /aria2ng.zip -d /ariang \
&& git clone --depth 1 https://github.com/ziahamza/webui-aria2 /webui-aria2t \
&& mv /webui-aria2t/docs /webui-aria2 \
&& rm -rf /webui-aria2t /aria2ng.zip \
&& apk del .install-deps
VOLUME /conf /data /watch
EXPOSE 6800/tcp 8080/tcp
ENTRYPOINT ["/init"]
CMD ["aria2c", "--conf-path=/conf/aria2.conf", "--log=/conf/aria2.log", ">", "/conf/stdout.log"]