mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
1acfaf03c4
Signed-off-by: Jessica Frazelle <princess@docker.com>
38 lines
1.5 KiB
Docker
38 lines
1.5 KiB
Docker
# VERSION: 0.1
|
|
# DESCRIPTION: Create transmission container with its dependencies
|
|
# AUTHOR: Jessica Frazelle <jess@docker.com>
|
|
# COMMENTS:
|
|
# This file describes how to build a transmission container with all
|
|
# dependencies installed.
|
|
# Tested on Debian Jessie
|
|
# USAGE:
|
|
# # Download transmission Dockerfile
|
|
# wget http://raw.githubusercontent.com/jfrazelle/dockerfiles/master/transmission/Dockerfile
|
|
#
|
|
# # Build transmission image
|
|
# docker build -t jess/transmission .
|
|
#
|
|
# docker run -d --name transmission \
|
|
# -v /home/jessie/Torrents:/transmission/download \
|
|
# -p 9091:9091 -p 51413:51413 -p 51413:51413/udp \
|
|
# jess/transmission
|
|
#
|
|
|
|
# Base docker image
|
|
FROM debian:jessie
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
transmission-daemon \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /transmission/{download,watch,incomplete,config} \
|
|
&& chmod 1777 /transmission
|
|
|
|
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" ]
|