forked from paolog89/docker-transmission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 904 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
FROM alpine as builder
#COPY qemu-* /usr/bin/
FROM builder
LABEL maintainer="Jay MOULIN <[email protected]> <https://twitter.com/MoulinJay>"
ARG VERSION=2.94
LABEL version=${VERSION}
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/main/" >> /etc/apk/repositories && \
apk update --no-cache && \
apk add transmission-daemon
WORKDIR /usr/bin
# Install transmission-web-control (https://github.com/ronggang/transmission-web-control)
ADD https://raw.githubusercontent.com/ronggang/transmission-web-control/master/release/install-tr-control.sh /tmp
RUN echo 1 | sh /tmp/install-tr-control.sh \
&& rm /tmp/install-tr-control.sh
EXPOSE 9091
EXPOSE 51413
EXPOSE 51413/udp
VOLUME /output
VOLUME /to_download
VOLUME /config
ENV USERNAME=admin
ENV PASSWORD=admin
ENV PORT=9091
CMD transmission-daemon -c /to_download -w /output -f -t -a *.*.*.* -u "$USERNAME" -v "$PASSWORD" -p "$PORT" -g /config