22
33FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
44
5- FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-edge
5+ FROM ghcr.io/by275/libtorrent:2-alpine3.23-arm64 AS libtorrent
6+
7+ FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.23
68
79# set version label
810ARG BUILD_DATE
@@ -19,19 +21,26 @@ ENV PYTHON_EGG_CACHE="/config/plugins/.python-eggs" \
1921RUN \
2022 echo "**** install build packages ****" && \
2123 apk add --no-cache --upgrade --virtual=build-dependencies \
22- build-base && \
24+ build-base \
25+ python3-dev && \
2326 echo "**** install packages ****" && \
24- if [ -z ${DELUGE_VERSION+x} ]; then \
25- DELUGE_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
26- && awk '/^P:deluge$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
27- fi && \
28- apk add --no-cache --upgrade --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
29- deluge==${DELUGE_VERSION} \
27+ apk add --no-cache --upgrade \
28+ boost1.84-python3 \
29+ geoip \
3030 python3 \
31- py3-future \
32- py3-geoip \
33- py3-requests \
3431 p7zip && \
32+ if [ -z ${DELUGE_VERSION+x} ]; then \
33+ DELUGE_VERSION=$(curl -sL https://pypi.python.org/pypi/deluge/json |jq -r '. | .info.version');\
34+ fi && \
35+ python3 -m venv /lsiopy && \
36+ pip install -U --no-cache-dir \
37+ pip \
38+ 'setuptools==81' && \
39+ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ \
40+ rencode==1.0.6 && \
41+ pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.23/ \
42+ deluge[all]==${DELUGE_VERSION} \
43+ pygeoip && \
3544 echo "**** grab GeoIP database ****" && \
3645 curl -L --retry 10 --retry-max-time 60 --retry-all-errors \
3746 "https://geoip.linuxserver.io/GeoIP.dat.gz" \
4453 $HOME/.cache \
4554 /tmp/*
4655
56+ COPY --from=libtorrent /libtorrent-build/usr/lib/libtorrent-rasterbar.* /usr/lib/
57+
58+ COPY --from=libtorrent /libtorrent-build/usr/lib/python3.12 /lsiopy/lib/python3.12
59+
4760# add local files
4861COPY root/ /
4962
0 commit comments