diff --git a/README.md b/README.md index 353befd..cb9418f 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,20 @@ scrape_configs: - localhost:9233 ``` +## Docker Build Instructions + +Build for both `arm64` and `amd64`: +``` +docker build -t fffonion/tplink-plug-exporter:latest-arm64 --platform linux/arm64 --build-arg GOARCH=arm64 . +docker build -t fffonion/tplink-plug-exporter:latest-amd64 --platform linux/amd64 --build-arg GOARCH=arm64 . +``` + +Merge them in one manifest: +``` +docker manifest create fffonion/tplink-plug-exporter:latest --amend fffonion/tplink-plug-exporter:latest-arm64 --amend fffonion/tplink-plug-exporter:latest-amd64 +docker push fffonion/tplink-plug-exporter:latest +``` + ## See also - Original reverse engineering work: https://github.com/softScheck/tplink-smartplug