-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 1.28 KB
/
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
# ------------------------------------------------------------------------------
# Pull base image
FROM ubuntu:focal
MAINTAINER Brett Kuskie <fullaxx@gmail.com>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
# ------------------------------------------------------------------------------
# Install rtorrent and clean up
RUN apt-get update && apt-get install -y --no-install-recommends rtorrent && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# ------------------------------------------------------------------------------
# Prepare rtorrent directories
RUN mkdir -p /rtorrent/autoload /rtorrent/torrents \
/rtorrent/config /rtorrent/session /rtorrent/complete
# ------------------------------------------------------------------------------
# Configure rtorrent
COPY rtorrent.rc /rtorrent/config/rtorrent.rc
# ------------------------------------------------------------------------------
# Identify Volumes
VOLUME /rtorrent/autoload
VOLUME /rtorrent/torrents
VOLUME /rtorrent/config
VOLUME /rtorrent/session
# ------------------------------------------------------------------------------
# Define default command
CMD ["rtorrent", "-n", "-o", "import=/rtorrent/config/rtorrent.rc"]