Skip to content

Commit

Permalink
Image size improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ciotlosm committed Feb 11, 2021
1 parent 199d57c commit 0b07170
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ RUN if [ "${BUILD_VERSION}" = "edge" ]; \
echo "Installing Stable version ${BUILD_VERSION%-*}" && \
curl -sL -o "/app.tar.gz" \
"https://github.com/Koenkk/zigbee2mqtt/archive/${BUILD_VERSION%-*}.tar.gz" && \
tar xzvf "/app.tar.gz" && \
tar xzvf "/app.tar.gz" && rm "/app.tar.gz" && \
mv -v "zigbee2mqtt-${BUILD_VERSION%-*}" app && \
jq -n --arg commit ${BUILD_VERSION%-*} '{"hash": $commit }' > /app/.hash.json ; \
fi; \
echo "Installed zigbee2mqtt @ version $(cat /app/.hash.json)"

RUN cd /app && \
npm install \
npm ci \
--no-audit \
--no-optional \
--no-update-notifier \
--only=production \
--unsafe-perm && \
apk del --no-cache --purge .build-dependencies && \
rm -rf docs test images scripts data docker LICENSE README.md update.sh
rm -rf docs test images scripts data docker LICENSE README.md update.sh && \
rm -rf npm-shrinkwrap.json \
node-modules/zigbee-herdsman/npm-shrinkwrap.json \
node-modules/zigbee-herdsman-converters/npm-shrinkwrap.json && \
rm -rf /root/.cache /root/.npm

COPY rootfs /
1 change: 1 addition & 0 deletions zigbee2mqtt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 1.17.1
- Updated Zigbee2mqtt to version [`1.17.1`](https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.17.1)
- Updated `"auto_uart": true` to use `"uart": true` instead
- Reduced image size - thanks https://github.com/G1K

## 1.17.0
- Updated Zigbee2mqtt to version [`1.17.0`](https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.17.0)
Expand Down

0 comments on commit 0b07170

Please sign in to comment.