forked from DeBaschdi/docker.new-easyepg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm32v7
70 lines (61 loc) · 2.79 KB
/
Dockerfile.arm32v7
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
FROM arm32v7/debian:bullseye-slim AS build
LABEL maintainer="Bastian Kleinschmidt <[email protected]>" \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.name="docker.new-easyepg"
ARG DEPENDENCIES="git ca-certificates python3 python3-pip python3-simplejson python3-requests python3-bottle python3-xmltodict"
ENV USER_ID="99" \
GROUP_ID="100" \
TIMEZONE="Europe/Berlin" \
REPO="script.service.easyepg-lite" \
BRANCH="main" \
UPDATE="yes" \
DEBIAN_FRONTEND="noninteractive" \
TERM=xterm \
LANGUAGE="en_US.UTF-8" \
LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
CLEANUP="/tmp/* /var/tmp/* /var/log/* /var/lib/apt/lists/* /var/lib/{apt,dpkg,cache,log}/ /var/cache/apt/archives /usr/share/doc/ /usr/share/man/ /usr/share/locale/ /root/.cpan /root/.cpanm"
COPY root/qemu-arm-static /usr/bin
COPY root/entrypoint /usr/local/sbin/entrypoint
COPY root/easyepg.process /usr/local/bin/easyepg.process
COPY root/easyepg.update /usr/local/bin/easyepg.update
COPY root/packages.cleanup /usr/local/sbin/packages.cleanup
RUN apt-get -qy update \
### tweak some apt & dpkg settngs
&& echo "APT::Install-Recommends "0";" >> /etc/apt/apt.conf.d/docker-noinstall-recommends \
&& echo "APT::Install-Suggests "0";" >> /etc/apt/apt.conf.d/docker-noinstall-suggests \
&& echo "Dir::Cache "";" >> /etc/apt/apt.conf.d/docker-nocache \
&& echo "Dir::Cache::archives "";" >> /etc/apt/apt.conf.d/docker-nocache \
&& echo "path-exclude=/usr/share/locale/*" >> /etc/dpkg/dpkg.cfg.d/docker-nolocales \
&& echo "path-exclude=/usr/share/man/*" >> /etc/dpkg/dpkg.cfg.d/docker-noman \
&& echo "path-exclude=/usr/share/doc/*" >> /etc/dpkg/dpkg.cfg.d/docker-nodoc \
&& echo "path-include=/usr/share/doc/*/copyright" >> /etc/dpkg/dpkg.cfg.d/docker-nodoc \
### install basic packages
&& apt-get install -qy apt-utils locales tzdata \
### limit locale to en_US.UTF-8
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 \
&& locale-gen --purge en_US.UTF-8 \
### run dist-upgrade
&& apt-get dist-upgrade -qy \
### install easyepg dependencies
&& apt-get install -qy ${DEPENDENCIES} \
## configure System
&& update-ca-certificates --fresh \
### create necessary files/directories
&& mkdir -p /easyepg \
&& mkdir -p /easyepg/xml \
### alter permissions
&& chmod +x /usr/local/sbin/entrypoint \
&& chmod +x /usr/local/bin/easyepg.process \
&& chmod +x /usr/local/bin/easyepg.update \
&& chmod +x /usr/local/sbin/packages.cleanup \
### cleanup
&& /usr/local/sbin/packages.cleanup
ENTRYPOINT [ "/usr/local/sbin/entrypoint" ]
VOLUME /easyepg
VOLUME /easyepg/xml
EXPOSE 4000
FROM build
RUN rm -rf /usr/bin/qemu-*