-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (33 loc) · 1.02 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
# syntax=docker/dockerfile:1.3-labs
#
FROM ubuntu:jammy-20230425
MAINTAINER gslin@gslin.org
#
RUN <<EOF bash
apt update -y
apt install -y autoconf build-essential dnsmasq git libcurl4-openssl-dev libssl-dev libtool libncursesw5-dev libudns-dev locales pkg-config sudo zlib1g-dev
apt clean
cd ~
git clone https://github.com/rakshasa/libtorrent.git
cd libtorrent
git checkout slingamn-udns.10
autoreconf -fi
./configure --prefix=/usr --with-udns
make -j
make install
cd ~
git clone https://github.com/rakshasa/rtorrent.git
cd rtorrent
git checkout 582e4e40256b43d3e5322168f1e1ed71ca70ab64
autoreconf -fi
./configure --prefix=/usr
make -j
make install
apt purge -y autoconf build-essential git libcurl4-openssl-dev libssl-dev libtool libncursesw5-dev libudns-dev pkg-config zlib1g-dev
locale-gen en_US.UTF-8
EOF
COPY .rtorrent.rc.template /home/rtorrent/.rtorrent.rc.template
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 6991
ENTRYPOINT ["/sbin/entrypoint.sh"]