Update eufy-ha-mqtt-bridge to prebuild images

This commit is contained in:
Max Winterstein
2021-02-15 07:58:42 +01:00
parent 12f6ba34fd
commit 257b45b777
8 changed files with 71 additions and 52 deletions
+17 -2
View File
@@ -1,3 +1,18 @@
# sneaky trick to get around the requirement of {arch}-variabe based docker repositories
ARG BUILD_FROM
FROM $BUILD_FROM
FROM maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge:1.9.0
ARG VERSION=0.2.10
RUN apk add --no-cache nodejs npm make g++
# add source and unpack
ADD "https://github.com/matijse/eufy-ha-mqtt-bridge/archive/${VERSION}.tar.gz" /src.tar.gz
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
# install all (and json2yaml for cofiguration parsing)
WORKDIR /app
RUN npm install && npm install -g json2yaml && echo ${VERSION} > /version
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]