mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-26 06:36:05 +01:00
To go in line with the README I think it would be appropriate to inform directly in the Dockerfile that port 51413 expects both TCP and UDP traffic to be forwarded.
68 lines
1.8 KiB
Docker
68 lines
1.8 KiB
Docker
FROM lsiobase/alpine:3.12
|
|
|
|
# set version label
|
|
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 packages ****" && \
|
|
apk add --no-cache \
|
|
curl \
|
|
findutils \
|
|
jq \
|
|
openssl \
|
|
p7zip \
|
|
python3 \
|
|
rsync \
|
|
tar \
|
|
transmission-cli \
|
|
transmission-daemon \
|
|
unrar \
|
|
unzip && \
|
|
echo "**** install transmission ****" && \
|
|
if [ -z ${TRANSMISSION_VERSION+x} ]; then \
|
|
TRANSMISSION_VERSION=$(curl -s http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/ \
|
|
| awk -F '(transmission-cli-|.apk)' '/transmission-cli.*.apk/ {print $2}'); \
|
|
fi && \
|
|
apk add --no-cache \
|
|
transmission-cli==${TRANSMISSION_VERSION} \
|
|
transmission-daemon==${TRANSMISSION_VERSION} && \
|
|
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 && \
|
|
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 && \
|
|
echo "**** cleanup ****" && \
|
|
rm -rf \
|
|
/tmp/*
|
|
|
|
|
|
# copy local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 9091 51413/tcp 51413/udp
|
|
VOLUME /config /downloads /watch
|