-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (35 loc) · 912 Bytes
/
Dockerfile
File metadata and controls
47 lines (35 loc) · 912 Bytes
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
FROM debian:8
MAINTAINER Dominique Barton
#
# Create user and group for utorrent.
#
RUN groupadd -r -g 666 utorrent \
&& useradd -r -u 666 -g 666 -d /utorrent -m utorrent
#
# Add utorrent init script.
#
ADD utorrent.sh /utorrent.sh
RUN chown utorrent: /utorrent.sh \
&& chmod 755 /utorrent.sh
#
# Install utorrent and all required dependencies.
#
RUN apt-get -q update \
&& apt-get install -qy curl libssl1.0.0 \
&& curl -s http://download.ap.bittorrent.com/track/beta/endpoint/utserver/os/linux-x64-debian-7-0 | tar xzf - --strip-components 1 -C utorrent \
&& chown -R utorrent: utorrent \
&& apt-get -y remove curl \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*
#
# Define container settings.
#
VOLUME ["/settings", "/media"]
EXPOSE 8080 6881
#
# Start utorrent.
#
WORKDIR /utorrent
CMD ["/utorrent.sh"]