Files
docker-transmission/Dockerfile

52 lines
1.2 KiB
Docker
Raw Normal View History

FROM lsiobase/alpine:3.9
2015-11-13 08:06:39 +00:00
2016-10-14 15:27:26 +01:00
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
2018-01-10 11:16:55 +00:00
LABEL maintainer="sparklyballs"
2016-10-14 15:27:26 +01:00
2016-07-01 09:46:34 +01:00
RUN \
2018-01-10 11:16:55 +00:00
echo "**** install packages ****" && \
2016-07-01 09:46:34 +01:00
apk add --no-cache \
2016-09-21 09:09:40 +01:00
curl \
findutils \
2016-10-18 08:41:49 -04:00
jq \
openssl \
p7zip \
python \
2017-07-25 11:37:34 -04:00
rsync \
tar \
2018-02-12 16:02:09 +00:00
transmission-cli \
transmission-daemon \
unrar \
unzip && \
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 && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
2018-01-10 11:16:55 +00:00
# copy local files
2016-07-01 09:46:34 +01:00
COPY root/ /
2015-11-13 08:06:39 +00:00
# ports and volumes
2015-11-13 08:06:39 +00:00
EXPOSE 9091 51413
VOLUME /config /downloads /watch