-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·32 lines (26 loc) · 968 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
FROM alpine:3.13
LABEL maintainer="u0398 <[email protected]>"
# Based on looselyrigorous's rtorrent image (https://github.com/looselyrigorous/docker-rtorrent/)
# Ideas from crazy-max's rtorrent/rutorrent image (https://github.com/crazy-max/docker-rtorrent-rutorrent/)
# Install rtorrent and su-exec
RUN apk add --no-cache \
rtorrent \
su-exec && \
# Create necessary folders
mkdir -p \
/dist \
/config \
/session \
/socket \
/watch/load \
/watch/start \
/downloads \
/downloads/complete && \
# Forward Info & Error logs to std{out,err} (à la nginx)
ln -sf /dev/stdout /var/log/rtorrent-info.log && \
ln -sf /dev/stderr /var/log/rtorrent-error.log
VOLUME ["/config", "/session", "/socket", "/watch", "/downloads"]
# Copy distribution rTorrent config for bootstrapping and entrypoint
COPY ./root /
ENTRYPOINT ["/entrypoint"]
CMD ["rtorrent", "-n", "-o", "import=/config/.rtorrent.rc"]