forked from docker-home-automation-stack/fhem-lepresenced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm32v5
37 lines (30 loc) · 1.05 KB
/
Dockerfile.arm32v5
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
FROM arm32v5/debian:bullseye-slim
COPY ./src/qemu-arm-static /usr/bin/qemu-arm-static
LABEL maintainer="JF Mennedy <jf.mennedy@gmail.com>"
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 \
nano \
libreadonly-perl \
&& 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 ["sh","/entry.sh"]
CMD ["start"]