-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (30 loc) · 1.77 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:latest
MAINTAINER xzl2021 <xzl2021#hotmail.com>
RUN apk add --no-cache --update bash aria2 darkhttpd && \
mkdir -p /conf && \
mkdir -p /data && \
mkdir /files && \
wget --no-check-certificate -qO /files/aria2.conf https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/aria2.conf && \
wget --no-check-certificate -qO /files/on-complete.sh https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/on-complete.sh && \
wget --no-check-certificate -qO /files/start.sh https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/start.sh && \
wget --no-check-certificate -qO /files/rclone https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/rclone && \
wget --no-check-certificate -qO /files/AriaNg.zip https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/AriaNg.zip && \
wget --no-check-certificate -qO /files/webui-aria2.zip https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/webui-aria2.zip && \
wget --no-check-certificate -qO /files/yaaw.zip https://github.com/xzl2021/docker-aria2-webui-rclone/raw/master/files/yaaw.zip && \
mv /files/rclone /usr/local/bin/rclone && \
chmod +x /usr/local/bin/rclone && \
mkdir -p /webui/AriaNg/ && \
mkdir -p /webui/webui-aria2/ && \
mkdir -p /webui/yaaw/ && \
unzip /files/AriaNg.zip -d /webui/AriaNg/ && \
unzip /files/webui-aria2.zip -d /webui/webui-aria2/ && \
unzip /files/yaaw.zip -d /webui/yaaw/ && \
rm -rf /files/AriaNg.zip /files/webui-aria2.zip /files/yaaw.zip && \
chmod +x /files/start.sh
WORKDIR /
VOLUME ["/data"]
VOLUME ["/conf"]
EXPOSE 6800
EXPOSE 80
EXPOSE 8080
CMD ["/files/start.sh"]