forked from Yoshiofthewire/docker-hdhomerundvr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (27 loc) · 1019 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
32
33
34
35
FROM phusion/baseimage:0.9.16
MAINTAINER ncandy <[email protected]>
#Based on the work of Yoshiofthewire <[email protected]>
#Based on the work of gfjardim <[email protected]>
#########################################
## ENVIRONMENTAL CONFIG ##
#########################################
# Set correct environment variables
ENV HOME="/root" LC_ALL="C.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8"
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
#########################################
## RUN INSTALL SCRIPT ##
#########################################
RUN mkdir -p /opt/hdhomerun
ADD hdhomerun.conf /etc/
ADD install.sh /
ADD hdhomerun_record_x64 /opt/hdhomerun/
RUN bash /install.sh
ADD supervisord.conf supervisord.conf
#########################################
## EXPORTS AND VOLUMES ##
#########################################
VOLUME /hdhomerun
EXPOSE 65001/udp 65002
CMD ["-n", "-c", "/supervisord.conf"]
ENTRYPOINT ["/usr/bin/supervisord"]