forked from linuxserver/docker-rutorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
81 lines (76 loc) · 1.76 KB
/
Dockerfile.aarch64
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM lsiobase/nginx:arm64v8-3.10
# set version label
ARG BUILD_DATE
ARG VERSION
ARG RUTORRENT_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
# copy patches
COPY patches/ /defaults/patches/
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
g++ \
libffi-dev \
openssl-dev \
python3-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
bind-tools \
curl \
fcgi \
ffmpeg \
geoip \
gzip \
libffi \
mediainfo \
openssl \
php7 \
php7-cgi \
php7-curl \
php7-pear \
php7-zip \
procps \
python3 \
rtorrent \
screen \
sox \
unrar \
zip && \
echo "**** install pip packages ****" && \
pip3 install --no-cache-dir -U \
cfscrape \
cloudscraper && \
echo "**** install rutorrent ****" && \
if [ -z ${RUTORRENT_RELEASE+x} ]; then \
RUTORRENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/Novik/ruTorrent/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/rutorrent.tar.gz -L \
"https://github.com/Novik/rutorrent/archive/${RUTORRENT_RELEASE}.tar.gz" && \
mkdir -p \
/app/rutorrent \
/defaults/rutorrent-conf && \
tar xf \
/tmp/rutorrent.tar.gz -C \
/app/rutorrent --strip-components=1 && \
mv /app/rutorrent/conf/* \
/defaults/rutorrent-conf/ && \
rm -rf \
/defaults/rutorrent-conf/users && \
echo "**** patch snoopy.inc for rss fix ****" && \
cd /app/rutorrent/php && \
patch < /defaults/patches/snoopy.patch && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/etc/nginx/conf.d/default.conf \
/root/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 80
VOLUME /config /downloads