-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
18 lines (16 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM linuxserver/qbittorrent:latest
ARG QBT_ENH_VERSION
ARG TARGETARCH
RUN apk add --no-cache unzip wget && \
cd /tmp && \
QBT_ENH_VERSION=$(curl -sL "https://api.github.com/repos/c0re100/qBittorrent-Enhanced-Edition/releases" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
echo "${QBT_ENH_VERSION}" && \
ARCH_REAL=$([ "${TARGETARCH}" = "arm64" ] && echo "aarch64" || ([ "${TARGETARCH}" = "amd64" ] && echo "x86_64" || (echo "unsupport" >&2 && exit 1))) || exit 1 && \
wget -O ./qbtenh.zip \
"https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/${QBT_ENH_VERSION}/qbittorrent-enhanced-nox_${ARCH_REAL}-linux-musl_static.zip" && \
unzip ./qbtenh.zip && \
mv ./qbittorrent-nox /usr/bin && \
chmod +x /usr/bin/qbittorrent-nox && \
rm -rf ./* && \
apk del --purge unzip wget