forked from shuaiscott/zap2xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
52 lines (48 loc) · 1.8 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
FROM alpine:3
ARG BUILD_URL
ARG DIGEST
ARG GIT_COMMIT
ARG TIMESTAMP
ARG URL
ARG VENDOR
ARG VERSION
LABEL com.github.actions.url="${BUILD_URL}"
LABEL org.opencontainers.image.created="${TIMESTAMP}"
LABEL org.opencontainers.image.base.digest="${DIGEST}"
LABEL org.opencontainers.image.base.name="docker.io/library/alpine:3"
LABEL org.opencontainers.image.description="Contains the zap2xml Perl script, a command-line utility that extracts electronic program guide (EPG) data for over-the-air (OTA) or cable television from any one of several service providers, parses it, collates it, and saves it in a format compatible with various media center applications."
LABEL org.opencontainers.image.documentation="${URL}"
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later"
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
LABEL org.opencontainers.image.source="${URL}"
LABEL org.opencontainers.image.title="zap2xml"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.vendor="${VENDOR}"
LABEL org.opencontainers.image.version="${VERSION}"
ENV USERNAME=none
ENV PASSWORD=none
ENV XMLTV_FILENAME=xmltv.xml
ENV OPT_ARGS=
# wait 12 Hours after run
ENV SLEEPTIME=43200
RUN echo '@edge https://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
apk add --no-cache \
ca-certificates@edge \
perl@edge \
perl-html-parser@edge \
perl-http-cookies@edge \
perl-io-socket-ssl@edge \
perl-json@edge \
perl-json-xs@edge \
perl-libwww@edge \
perl-lwp-protocol-https@edge \
perl-lwp-useragent-determined@edge \
perl-mozilla-ca@edge \
perl-net-http@edge \
perl-net-libidn@edge \
perl-net-ssleay@edge \
perl-uri@edge \
xmltv@edge
VOLUME /data
ADD zap2xml.pl entry.sh /
CMD /entry.sh