ndecker / fritzbox_exporter

Fritz!Box Upnp statistics exporter for prometheus
Apache License 2.0
91 stars 118 forks source link

Convert to Go module and use multi-staged Docker build #19

Closed xperimental closed 1 year ago

xperimental commented 4 years ago

This updates the project to use the Go module format and also changes the Dockerfile so that the image produced is much smaller because it does not contain the build environment anymore.

One could now also remove the vendor folder completely as the dependencies are kept stable by the module, but keeping them vendored has the additional benefit of needing no external network access during build.

I'd also recommend updating the dependencies, but this can also be done separately as maybe some code changes are needed as well.