forked from marcoh00/docker-tvheadend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
70 lines (57 loc) · 1.92 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
59
60
61
62
63
64
65
66
67
68
69
70
FROM ubuntu:18.04
MAINTAINER "Marco Huenseler <[email protected]>"
ENV BUILD_DEPS="build-essential cmake pkg-config libavahi-client-dev libssl-dev zlib1g-dev wget libcurl4-gnutls-dev git-core liburiparser-dev libdvbcsa-dev"
# Latest successful CI builded commit of master as of 2018/11/02
ENV BUILD_COMMIT="2b16fcbf657437c227bb48b0d5c3b0b3f7d0d5bb"
# Install
RUN apt-get update && \
apt-get install -y --no-install-suggests --no-install-recommends \
$BUILD_DEPS \
gettext \
bzip2 \
python \
curl \
ca-certificates \
libssl1.0.0 \
zlib1g \
liburiparser1 \
libavahi-common3 \
libavahi-client3 \
libdbus-1-3 \
libselinux1 \
liblzma5 \
libgcrypt20 \
libpcre3 \
libgpg-error0 \
libdvbcsa1 \
cron \
wget \
curl \
phantomjs \
uni2ascii \
utils \
ffmpeg \
dialog \
vlc
# Build TVHeadend
RUN git clone https://github.com/tvheadend/tvheadend /tvh-build && \
cd /tvh-build && \
git checkout -b work $BUILD_COMMIT && \
./configure --prefix=/usr && \
make && \
make install && \
rm -rf /tvh-build && \
apt-get purge -y $BUILD_DEPS && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create user & group
RUN groupadd -g 10710 tvheadend && \
useradd -u 10710 -g tvheadend tvheadend && \
install -o tvheadend -g tvheadend -d /config
VOLUME /config /recordings
EXPOSE 554 9981 9982
ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["-u", "tvheadend", "-g", "tvheadend", "-c", "/tvh-data/conf"]