dockerfiles/transmission/Dockerfile

44 lines
1.7 KiB
Docker
Raw Permalink Normal View History

# DESCRIPTION: Create transmission container with its dependencies
# AUTHOR: Jessie Frazelle <jess@linux.com>
2014-10-19 06:40:41 +02:00
# COMMENTS:
# This file describes how to build a transmission container with all
# dependencies installed.
# Tested on Debian Jessie
2014-10-19 06:40:41 +02:00
# USAGE:
# # Download transmission Dockerfile
# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/transmission/Dockerfile
2014-10-19 06:40:41 +02:00
#
# # Build transmission image
# docker build -t jess/transmission .
2014-10-19 06:40:41 +02:00
#
# docker run -d --name transmission \
# -v /home/jessie/Torrents:/transmission/download \
# -p 9091:9091 -p 51413:51413 -p 51413:51413/udp \
# jess/transmission
2014-10-19 06:40:41 +02:00
#
# Base docker image
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2014-10-19 06:40:41 +02:00
2018-03-26 14:53:30 +02:00
# machine parsable metadata, for https://github.com/pycampers/dockapt
LABEL "registry_image"="r.j3ss.co/transmission"
LABEL "docker_run_flags"="-d --name transmission \
-v ~/Downloads:/transmission/download \
-p 9091:9091 -p 51413:51413 -p 51413:51413/udp"
RUN apk --no-cache add \
transmission-daemon \
2017-02-01 22:40:19 +01:00
&& mkdir -p /transmission/download \
/transmission/watch \
/transmission/incomplete \
/transmission/config \
&& chmod 1777 /transmission
2014-10-19 06:40:41 +02:00
ENV TRANSMISSION_HOME /transmission/config
EXPOSE 9091
ENTRYPOINT ["/usr/bin/transmission-daemon"]
CMD [ "--allowed", "127.*,10.*,192.168.*,172.16.*,172.17.*,172.18.*,172.19.*,172.20.*,172.21.*,172.22.*,172.23.*,172.24.*,172.25.*,172.26.*,172.27.*,172.28.*,172.29.*,172.30.*,172.31.*,169.254.*", "--watch-dir", "/transmission/watch", "--encryption-preferred", "--foreground", "--config-dir", "/transmission/config", "--incomplete-dir", "/transmission/incomplete", "--dht", "--no-auth", "--download-dir", "/transmission/download" ]