-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharia2.Dockerfile
41 lines (37 loc) · 1.33 KB
/
aria2.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
35
36
37
38
39
40
41
# syntax=docker/dockerfile:1.9
ARG RELEASE_VERSION
FROM ddsderek/bgmi-all-in-one:${RELEASE_VERSION}
ENV BGMI_VERSION=aria2 \
ARIA2_UPDATE_TRACKERS=true \
ARIA2_CUSTOM_TRACKER_URL=https://raw.githubusercontent.com/DDS-Derek/Aria2-Pro-Docker/main/tracker/all.list \
ARIA2_LISTEN_PORT=6888 \
ARIA2_RPC_PORT=6800 \
ARIA2_RPC_SECRET=password \
ARIA2_DISK_CACHE= \
ARIA2_IPV6_MODE=
RUN set -ex && \
apk add --no-cache \
iptables \
ip6tables \
ipset \
libcap \
nodejs \
npm && \
# Aria2-Ban install
npm i -g aria2b && \
# Aria2-Pro install
curl --insecure -fsSL https://raw.githubusercontent.com/DDS-Derek/Aria2-Pro-Core/master/aria2-install.sh | bash && \
echo $(aria2c --version) > /versions/ARIA2C_VERSION.txt && \
# AriaNg install
mkdir -p ${BGMI_HOME}/downloader/aria2/ariang && \
ARIANG_TAG=$(curl -s "https://api.github.com/repos/mayswind/AriaNg/releases/latest" | jq -r .tag_name) && \
echo ${ARIANG_TAG} > /versions/ARIANG_VERSION.txt && \
curl \
-sL https://github.com/mayswind/AriaNg/releases/download/${ARIANG_TAG}/AriaNg-${ARIANG_TAG}.zip | \
busybox unzip -qd ${BGMI_HOME}/downloader/aria2/ariang - && \
aria2c --version && \
# Clear
rm -rf \
/var/cache/apk/* \
/root/.cache \
/tmp/*