Skip to content

Conversation

@d3vilh
Copy link
Contributor

@d3vilh d3vilh commented Apr 27, 2023

Moved to Alpine Linux base image (from Debian) to reduce container image size 10 times:

philipp@d3vpi:~/build/rpi_export $ docker image ls | grep rpi_exporter | grep -E 'alpine|debian'
d3vilh/rpi_exporter-arm64              alpine        aa0aadc1ef01   13 minutes ago   13.9MB
d3vilh/rpi_exporter-arm64              debian        d50133320582   7 weeks ago      129MB
philipp@d3vpi:~/build/rpi_export $

Also I include building of binary inside the container. To build you just need to run:

docker build --force-rm=true -t rpi_exporter-arm64 .

and then test:

docker run --interactive --tty --rm rpi_exporter-arm64

compose file is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant