This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
Dockerfile.aarch64
84 lines (79 loc) · 1.82 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
82
83
84
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.12
# 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 \
patch \
py3-pip \
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 \
py3-requests \
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