forked from docker-home-automation-stack/fhem-lepresenced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm64v8
35 lines (28 loc) · 1.04 KB
/
Dockerfile.arm64v8
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 arm64v8/debian:stretch-slim
COPY ./src/qemu-aarch64-static /usr/bin/qemu-aarch64-static
LABEL maintainer="Julian Pawlowski <[email protected]>"
ENV TERM xterm
# Install base environment
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \
apt-transport-https \
bash \
bluez \
bluez-hcidump \
gawk \
libnet-server-perl \
netcat \
perl \
socat \
&& apt-get autoremove && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD https://svn.fhem.de/fhem/trunk/fhem/contrib/PRESENCE/lepresenced /lepresenced
ADD https://raw.githubusercontent.com/micky0867/lebattery/master/lebattery /lebattery
COPY src/entry.sh /entry.sh
RUN chmod 755 /*.sh /lepresenced /lebattery
VOLUME [ "/data" ]
EXPOSE 22
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 CMD nc -z localhost 5333
ENTRYPOINT [ "/entry.sh" ]
CMD [ "start" ]