-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
29 lines (20 loc) · 842 Bytes
/
Dockerfile
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
FROM elventear/supervisord:latest
MAINTAINER Pepe Barbe <[email protected]>
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:transmissionbt/ppa && \
apt-get update && \
apt-get install -y transmission-daemon
ADD files/transmission-daemon /etc/transmission-daemon
ADD files/run_transmission.sh /run_transmission.sh
RUN mkdir -p /var/lib/transmission-daemon/incomplete && \
mkdir -p /var/lib/transmission-daemon/downloads && \
chown -R debian-transmission: /var/lib/transmission-daemon && \
chown -R debian-transmission: /etc/transmission-daemon
VOLUME ["/var/lib/transmission-daemon/downloads"]
VOLUME ["/var/lib/transmission-daemon/incomplete"]
EXPOSE 9091
EXPOSE 12345
USER debian-transmission
CMD ["/run_transmission.sh"]