forked from linuxserver/docker-deluge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'linuxserver/master'
- Loading branch information
Showing
8 changed files
with
1,463 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar | ||
|
||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-edge | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG DELUGE_VERSION | ||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="aptalca" | ||
|
||
# environment variables | ||
ENV PYTHON_EGG_CACHE="/config/plugins/.python-eggs" \ | ||
TMPDIR=/run/deluged-temp | ||
|
||
# install software | ||
RUN \ | ||
echo "**** install build packages ****" && \ | ||
apk add --no-cache --upgrade --virtual=build-dependencies \ | ||
build-base && \ | ||
echo "**** install packages ****" && \ | ||
apk add --no-cache --upgrade --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
python3 \ | ||
py3-future \ | ||
py3-geoip \ | ||
py3-requests \ | ||
p7zip && \ | ||
if [ -z ${DELUGE_VERSION+x} ]; then \ | ||
DELUGE_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \ | ||
&& awk '/^P:deluge$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \ | ||
fi && \ | ||
apk add -U --upgrade --no-cache \ | ||
deluge==${DELUGE_VERSION} && \ | ||
echo "**** grab GeoIP database ****" && \ | ||
curl -L --retry 10 --retry-max-time 60 --retry-all-errors \ | ||
"https://mailfud.org/geoip-legacy/GeoIP.dat.gz" \ | ||
| gunzip > /usr/share/GeoIP/GeoIP.dat && \ | ||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ | ||
echo "**** cleanup ****" && \ | ||
apk del --purge \ | ||
build-dependencies && \ | ||
rm -rf \ | ||
$HOME/.cache \ | ||
/tmp/* | ||
|
||
# add local files | ||
COPY root/ / | ||
|
||
# add unrar | ||
COPY --from=unrar /usr/bin/unrar-alpine /usr/bin/unrar | ||
|
||
# ports and volumes | ||
EXPOSE 8112 58846 58946 58946/udp | ||
VOLUME /config |
Oops, something went wrong.