2 FROM alpine:latest AS builder
6 # alpine linux qbittorrent package: https://git.alpinelinux.org/aports/tree/community/qbittorrent/APKBUILD
9 apk --update-cache add \
13 libtorrent-rasterbar-dev \
19 if [ "$QBT_VERSION" = "devel" ]; then \
20 wget https://github.com/qbittorrent/qBittorrent/archive/refs/heads/master.zip && \
22 cd qBittorrent-master ; \
24 wget "https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-${QBT_VERSION}.tar.gz" && \
25 tar -xf "release-${QBT_VERSION}.tar.gz" && \
26 cd "qBittorrent-release-${QBT_VERSION}" ; \
31 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
35 cmake --build build && \
44 libtorrent-rasterbar \
56 echo "permit nopass :root" >> "/etc/doas.d/doas.conf"
58 COPY --from=builder /usr/local/bin/qbittorrent-nox /usr/bin/qbittorrent-nox
60 COPY entrypoint.sh /entrypoint.sh
62 ENTRYPOINT ["/sbin/tini", "-g", "--", "/entrypoint.sh"]