-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
87 lines (71 loc) · 2.01 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
FROM alpine:latest
LABEL maintainer="taylorbourne [email protected]"
# Install S6 overlay
ARG S6_OVERLAY_RELEASE=https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-x86.tar.gz
ENV S6_OVERLAY_RELEASE=${S6_OVERLAY_RELEASE}
ADD ${S6_OVERLAY_RELEASE} /tmp/s6overlay.tar.gz
RUN tar xzf /tmp/s6overlay.tar.gz -C / \
&& rm /tmp/s6overlay.tar.gz
# Add packages
RUN apk upgrade --update --no-cache \
&& apk add --no-cache \
ca-certificates \
curl \
tzdata \
bash \
coreutils \
shadow \
ffmpeg \
vlc \
gnutls-utils
# Update Timezone
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Add xTeve and guide2go
RUN wget https://github.com/xteve-project/xTeVe-Downloads/raw/master/xteve_linux_amd64.zip -O temp.zip; unzip temp.zip -d /usr/bin/; rm temp.zip
# Add lazystream
RUN wget https://github.com/tarkah/lazystream/releases/download/v1.12.1/lazystream-v1.12.1-x86_64-unknown-linux-musl.tar.gz -O lazystream.tar.gz; \
tar xzf lazystream.tar.gz; \
mv ././lazystream /usr/bin/lazystream; \
rm lazystream.tar.gz; \
rm -rf lazystream/
# Add abc user
RUN groupmod -g 1000 users && \
useradd -u 911 -U -d /home/abc -s /bin/bash abc && \
usermod -G users abc
# Copy root folder
COPY root/ /
# Volumes
VOLUME /config
VOLUME /playlists
VOLUME /guide2go
VOLUME /xteve
VOLUME /tmp/xteve
# Set executable permissions
RUN chmod +x /usr/bin/lazystream
RUN chmod +x /usr/bin/xteve
RUN chmod +x /usr/bin/guide2go
# Build arg
ARG XTEVE_PORT=34400
# Env
ENV PUID=1000 \
PGID=1000 \
XTEVE_PORT=${XTEVE_PORT} \
use_xTeveAPI=yes \
use_lazystream=yes \
include_nhl=yes\
include_mlb=yes \
cdn=akc \
use_guide2go=no \
YamlList="CBLguide.yaml SATguide.yaml SATSport.yaml" \
use_embyAPI=no \
embyIP= \
embyPORT=8096 \
embyApiKey= \
embyID= \
use_plexAPI=no \
trim_xmltv=no \
hostOverride=
# Expose Port
EXPOSE ${XTEVE_PORT}
ENTRYPOINT [ "/init" ]