-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.39 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
34
35
36
37
38
39
40
# ------------------------------------------------------------------------------
# Pull base image
FROM ubuntu:bionic
MAINTAINER Brett Kuskie <[email protected]>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C
# ------------------------------------------------------------------------------
# Install applications and clean up
RUN apt-get update && apt-get install -y \
--no-install-recommends rtorrent openvpn locales && \
sed -e 's/# en_US.UTF-8/en_US.UTF-8/' -i /etc/locale.gen && locale-gen && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
# ------------------------------------------------------------------------------
# Prepare rtorrent directories
RUN mkdir -p \
/rtorrent/torrents \
/rtorrent/session \
/rtorrent/complete
# ------------------------------------------------------------------------------
# Install startup scripts
COPY app/*.sh /app/
# ------------------------------------------------------------------------------
# Configure rtorrent
COPY rtorrent.rc /usr/share/rtorrent/rtorrent.rc
# ------------------------------------------------------------------------------
# Identify Volumes
VOLUME /rtorrent/torrents
VOLUME /rtorrent/session
# ------------------------------------------------------------------------------
# Define default command
CMD ["/app/app.sh"]