-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
21 lines (17 loc) · 978 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM crazymax/rtorrent-rutorrent:latest
# set labels
LABEL maintainer="XxAcielxX"
LABEL org.opencontainers.image.vendor="XxAcielxX"
LABEL org.opencontainers.image.title="ruTorrent"
LABEL org.opencontainers.image.description="rTorrent and ruTorrent Docker based image"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/xxacielxx/rutorrent"
LABEL org.opencontainers.image.source="https://github.com/XxAcielxX/docker-rutorrent"
# modifications
RUN \
echo "**** apply patches for /downloads ****" && \
sed -i -e '153s/themes [*\]/themes/; 249s_[*/]_/downloads_; 154,155d;400,401d' '/etc/cont-init.d/03-config.sh' && \
sed -i -e '4,22s/[*/]complete//' '/tpls/etc/nginx/conf.d/webdav.conf' && \
sed -i -e '/pex\.set/s/yes/no/; /umask\.set/s/^/#/; 56,60d' '/tpls/.rtorrent.rc' && \
sed -i -e '/complete\//d; /temp\//d; /directory\.default/s/download_temp/download/' '/tpls/etc/rtorrent/.rtlocal.rc'
VOLUME [ "/data", "/downloads", "/passwd" ]
HEALTHCHECK NONE