-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (27 loc) · 876 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
30
31
32
33
34
35
36
37
FROM alpine:latest
MAINTAINER @silvinux [[email protected]]
ARG TUID=1000
ARG TGID=1000
ARG USERNAME=silvinux
ARG PASSWORD=toor
ENV TUID=${TUID}
ENV TGID=${TGID}
ENV USERNAME=${USERNAME}
ENV PASSWORD=${PASSWORD}
RUN adduser -D -u $TUID -g $TGID $USERNAME
RUN apk add --update \
transmission-daemon \
&& rm -rf /var/cache/apk/*
RUN mkdir -p /transmission/{downloads,incomplete} && \
mkdir -p /etc/transmission-daemon &&\
chown -R $TUID:$TGID /transmission && \
chown -R $TUID:$TGID /etc/transmission-daemon
ADD files/etc/transmission-daemon/ /etc/transmission-daemon/
ADD files/start-transmission.sh /start-transmission.sh
VOLUME ["/transmission/downloads"]
VOLUME ["/transmission/incomplete"]
VOLUME ["/transmission/TV_Shows"]
EXPOSE 9091 51413/tcp 51413/udp
RUN chmod +x /start-transmission.sh
USER $USERNAME
CMD ["/start-transmission.sh"]