-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
52 lines (40 loc) · 1.84 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
ARG baseIMAGE=debian \
baseTAG=stable-slim
FROM ${baseIMAGE}:${baseTAG}
COPY root/ /
ARG authors="A. Hemmerle <github.com/lapicidae>" \
DEBIAN_FRONTEND="noninteractive" \
EPGD_DEV="false" \
inVM="true" \
S6VER="3.2.0.2" \
baseDIGEST \
baseIMAGE \
baseTAG \
dateTime \
epgdRevision \
epgdVersion
ENV PATH="$PATH:/command"
ENV LANG="de_DE.UTF-8" \
S6_VERBOSITY="1"
ADD https://github.com/just-containers/s6-overlay/releases/download/v$S6VER/s6-overlay-noarch.tar.xz /tmp
ADD https://github.com/just-containers/s6-overlay/releases/download/v$S6VER/s6-overlay-x86_64.tar.xz /tmp
ADD https://github.com/just-containers/s6-overlay/releases/download/v$S6VER/syslogd-overlay-noarch.tar.xz /tmp
RUN /usr/bin/bash -c '/install.sh'
WORKDIR /epgd
LABEL org.opencontainers.image.authors=${authors} \
org.opencontainers.image.base.digest=${baseDIGEST} \
org.opencontainers.image.base.name="docker.io/${baseIMAGE}:${baseTAG}" \
org.opencontainers.image.created=${dateTime} \
org.opencontainers.image.description="Download EPG data from the internet and manage it in a maria database" \
org.opencontainers.image.documentation="https://github.com/lapicidae/vdr-epg-daemon/blob/master/README.md" \
org.opencontainers.image.licenses="GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later" \
org.opencontainers.image.revision=${epgdRevision} \
org.opencontainers.image.source="https://github.com/lapicidae/vdr-epg-daemon/" \
org.opencontainers.image.title="epgd" \
org.opencontainers.image.url="https://github.com/lapicidae/vdr-epg-daemon/blob/master/README.md" \
org.opencontainers.image.version=${epgdVersion}
EXPOSE 9999
VOLUME ["/epgd/cache", "/epgd/config", "/epgd/epgimages"]
HEALTHCHECK --interval=20s --timeout=3s \
CMD /usr/local/bin/healthcheck
ENTRYPOINT ["/init"]