Update eufy-ha-mqtt-bridge==0.2.0

This commit is contained in:
Max Winterstein
2021-01-10 01:17:37 +01:00
parent c085793586
commit 6901a3f002
6 changed files with 11 additions and 13 deletions
+4 -6
View File
@@ -1,20 +1,18 @@
FROM hassioaddons/debian-base
ENV LANG C.UTF-8
ARG VERSION=0.2.0
# install node and build tools (needed by node-pre-gy)
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt install -y nodejs g++ make python
# Calls for a random number to bust the cache
# (https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands/58801213#58801213)
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
# add source and unpack
ADD "https://github.com/matijse/eufy-ha-mqtt-bridge/tarball/main" /src.tar.gz
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
RUN npm install && npm install -g json2yaml && echo ${VERSION} > /version
COPY run.sh /
RUN chmod a+x /run.sh