added Dockerfile for latest release

This commit is contained in:
john30
2017-02-18 14:44:56 +01:00
parent 64be012cb1
commit 3bed9a0b49
2 changed files with 33 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM debian
RUN apt-get update && apt-get install -y \
libmosquitto1 \
curl
LABEL maintainer "ebusd@ebusd.eu"
ENV EBUSD_VERSION 2.4
ENV EBUSD_ARCH amd64
LABEL version "${EBUSD_VERSION}-${EBUSD_ARCH}"
RUN curl -SL https://github.com/john30/ebusd/releases/download/v${EBUSD_VERSION}/ebusd-${EBUSD_VERSION}_${EBUSD_ARCH}.deb > ebusd.deb
RUN dpkg -i ebusd.deb
RUN curl -SL https://github.com/john30/ebusd-configuration/archive/master.tar.gz \
| tar xz --strip-components=3 -C /etc/ebusd ebusd-configuration-master/ebusd-2.1.x/de
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 "$@"