add RPi version (fix #267)

This commit is contained in:
john30
2019-11-10 19:04:05 +01:00
parent 819463fc27
commit 3e7e4c7a3c
2 changed files with 33 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM balenalib/raspberrypi3
RUN apt-get update && apt-get install -y \
logrotate libmosquitto1 libstdc++6 libc6 libgcc1 \
curl \
&& rm -rf /var/lib/apt/lists/*
LABEL maintainer "ebusd@ebusd.eu"
ENV EBUSD_VERSION 3.4
ENV EBUSD_ARCH armhf
LABEL version "${EBUSD_VERSION}-${EBUSD_ARCH}"
RUN curl -SL https://github.com/john30/ebusd/releases/download/v${EBUSD_VERSION}/ebusd-${EBUSD_VERSION}_${EBUSD_ARCH}-stretch_mqtt1.deb > ebusd.deb
RUN dpkg -i ebusd.deb
RUN rm ebusd.deb
EXPOSE 8888
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["-f", "--scanconfig"]
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -e
if [ "${1#-}" != "$1" ]; then
set -- ebusd "$@"
fi
exec "$@"