diff --git a/eufy-ha-mqtt-bridge/CHANGELOG.md b/eufy-ha-mqtt-bridge/CHANGELOG.md index 8dfafe0..d83bae8 100644 --- a/eufy-ha-mqtt-bridge/CHANGELOG.md +++ b/eufy-ha-mqtt-bridge/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [0.5.0] - 2021-01-02 +- Improve image recration by adding some cache buster + ## [0.4.0] - 2021-01-02 - Change base image to `hassioaddons/debian-base` - Add icon (thx to [davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591])) diff --git a/eufy-ha-mqtt-bridge/Dockerfile b/eufy-ha-mqtt-bridge/Dockerfile index 1c80856..9be751a 100644 --- a/eufy-ha-mqtt-bridge/Dockerfile +++ b/eufy-ha-mqtt-bridge/Dockerfile @@ -1,12 +1,16 @@ FROM hassioaddons/debian-base - ENV LANG C.UTF-8 # 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 -# ass source and unpack -RUN mkdir /src /app && curl -sL https://github.com/matijse/eufy-ha-mqtt-bridge/tarball/main | tar xvfz - -C /app --strip-components=1 +# Calls for a random number to break 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 +RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1 # install all (and json2yaml for Cofiguration parsing) WORKDIR /app