-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (31 loc) · 1.38 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
FROM ubuntu:20.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 commit of master as of 2020/07/01
ENV BUILD_COMMIT="51a4c5bec7b6fc69dab7b8d559f9b1b881f0eb8e"
# Build TVHeadend
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-suggests --no-install-recommends \
$BUILD_DEPS gettext bzip2 python curl ca-certificates \
libssl1.1 zlib1g liburiparser1 libavahi-common3 libavahi-client3 libdbus-1-3 libselinux1 liblzma5 libgcrypt20 libpcre3 libgpg-error0 libdvbcsa1 && \
git clone https://github.com/tvheadend/tvheadend /tvh-build && \
cd /tvh-build && \
git checkout -b work $BUILD_COMMIT && \
./configure --prefix=/usr && \
make -j 4 && \
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 /tvh-data
VOLUME /tvh-data
EXPOSE 9981 9982
ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["-u", "tvheadend", "-g", "tvheadend", "-c", "/tvh-data/conf"]