forked from linuxserver/docker-transmission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.armhf
92 lines (88 loc) · 2.78 KB
/
Dockerfile.armhf
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
85
86
87
88
89
90
91
92
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
ARG UNRAR_VERSION=6.1.4
ARG BUILD_DATE
ARG VERSION
ARG TRANSMISSION_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --upgrade --virtual=build-dependencies \
make \
g++ \
gcc && \
echo "**** install packages ****" && \
apk add --no-cache \
ca-certificates \
curl \
findutils \
jq \
openssl \
p7zip \
python3 \
rsync \
tar \
transmission-cli \
transmission-daemon \
unzip && \
echo "**** install transmission ****" && \
apk add --no-cache \
transmission-cli \
transmission-daemon && \
echo "**** install unrar from source ****" && \
mkdir /tmp/unrar && \
curl -o \
/tmp/unrar.tar.gz -L \
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
tar xf \
/tmp/unrar.tar.gz -C \
/tmp/unrar --strip-components=1 && \
cd /tmp/unrar && \
make && \
install -v -m755 unrar /usr/local/bin && \
echo "**** install third party themes ****" && \
curl -o \
/tmp/combustion.zip -L \
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
unzip \
/tmp/combustion.zip -d \
/ && \
mkdir -p /tmp/twctemp && \
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o \
/tmp/twc.tar.gz -L \
"https://github.com/ronggang/transmission-web-control/archive/${TWCVERSION}.tar.gz" && \
tar xf \
/tmp/twc.tar.gz -C \
/tmp/twctemp --strip-components=1 && \
mv /tmp/twctemp/src /transmission-web-control && \
# Enables the original UI button in transmission-web-control
ln -s /usr/share/transmission/web/style /transmission-web-control && \
ln -s /usr/share/transmission/web/images /transmission-web-control && \
ln -s /usr/share/transmission/web/javascript /transmission-web-control && \
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html && \
mkdir -p /kettu && \
curl -o \
/tmp/kettu.tar.gz -L \
"https://github.com/endor/kettu/archive/master.tar.gz" && \
tar xf \
/tmp/kettu.tar.gz -C \
/kettu --strip-components=1 && \
curl -o \
/tmp/flood-for-transmission.tar.gz -L \
"https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz" && \
tar xf \
/tmp/flood-for-transmission.tar.gz -C \
/ && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 9091 51413/tcp 51413/udp
VOLUME /config /downloads /watch