-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
31 lines (23 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
FROM alpine
LABEL maintainer="Gianluca Gabrielli" mail="[email protected]"
LABEL description="rTorrent on Alpine Linux, with a better Docker integration."
LABEL website="https://github.com/TuxMeaLux/alpine-rtorrent"
LABEL version="1.0"
ARG UGID=666
RUN addgroup -g $UGID rtorrent && \
adduser -S -u $UGID -G rtorrent rtorrent && \
apk add --no-cache rtorrent && \
mkdir -p /home/rtorrent/rtorrent/config.d && \
mkdir /home/rtorrent/rtorrent/.session && \
mkdir /home/rtorrent/rtorrent/download && \
mkdir /home/rtorrent/rtorrent/watch && \
chown -R rtorrent:rtorrent /home/rtorrent/rtorrent
COPY --chown=rtorrent:rtorrent config.d/ /home/rtorrent/rtorrent/config.d/
COPY --chown=rtorrent:rtorrent .rtorrent.rc /home/rtorrent/
VOLUME /home/rtorrent/rtorrent/.session
EXPOSE 16891
EXPOSE 6881
EXPOSE 6881/udp
EXPOSE 50000
USER rtorrent
CMD ["rtorrent"]