forked from CraziFuzzy/opendct-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 794 Bytes
/
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
# BUILDING
# docker build -t crazifuzzy/opendct .
FROM ubuntu:16.04
ENV APP_NAME="OpenDCT Network Encoder"
ENV DEBIAN_FRONTEND=noninteractive
# add sagetv user and group
RUN useradd -u 1029 -U -d /opt/opendct -s /bin/bash -G video sagetv
RUN groupmod -o -g 100 sagetv
RUN groupmod -o -g 99 video
# Speed up APT
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup \
&& echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
RUN set -x \
&& apt-get update \
&& apt-get install -y curl wget default-jre-headless jq
VOLUME ["/etc/opendct"]
VOLUME ["/var/log/opendct"]
VOLUME ["/opt/opendct"]
ADD install-opendct.sh /usr/bin/
RUN chmod 755 /usr/bin/install-opendct.sh
# launch script which will install and start opendct
CMD ["/usr/bin/install-opendct.sh"]