-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (46 loc) · 1.13 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:18.04
MAINTAINER binerf <[email protected]>
# Base settings
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
# Install base packages
RUN apt-get update -y
RUN apt-get install software-properties-common \
sudo \
-y
# Add PPA Repository
#RUN echo "deb http://ppa.launchpad.net/transmissionbt/ppa/ubuntu bionic main" > /etc/apt/sources.list.d/transmissionbt-ppa-bionic.list
RUN add-apt-repository ppa:transmissionbt/ppa -y
# Update package lists
RUN apt-get update -y
RUN apt-get -y dist-upgrade
# Install transmission
RUN apt-get install transmission-cli \
transmission-common \
transmission-daemon \
-y
VOLUME /var/lib/transmission-daemon
RUN chown -R debian-transmission:debian-transmission /var/lib/transmission-daemon
ADD run.sh /run.sh
RUN chmod 0755 /run.sh
#Slimming down Docker containers
RUN apt-get purge \
cpp \
build-essential \
eject \
g++-4.8 \
libstdc++-4.8-dev \
make \
manpages \
manpages-dev \
vim-common \
vim-tiny \
-y
RUN apt-get autoremove -y
RUN apt-get clean -y
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Set upstart command
CMD ["/run.sh"]
#Expose ports
EXPOSE 9091
EXPOSE 51413