Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Moving to Alpine image + Autobuild #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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