Hey! I’m making a container right now and the size difference between mainline alpine and the raspberry-pi-alpine package is massive! Currently the size of the raspberry-pi-alpine package is 20MB, but in the past it has been 168MB. I’m just wondering where this size is coming from, am I misunderstanding the tags? Furthermore, the regular alpine repository is only 5MB, which I’m going to try and use now since all I need to run is haproxy in it.
I wonder if regular alpine repository that you mention, does work for a Raspberry Pi. The size difference I believe can be because our Raspberry Pi alpine base image also installs some Raspberry Pi libraries, see eg. this dockerfile for 3.10-run:
The “architecture” base image, balenalib/rpi-alpine is smaller, I think (about 15MB vs 20B of raspberry-pi-alpine for 3.10-run in both cases), and also installs a few dependencies that make life easier on tht base image, does add the balena modifications, and also add possibility of cross-compiling (e.g. when you do balena build --emulated on your local non-ARM computer to still be able to build the images)
If you want to use a small image with haproxy, check out our example in the multicontainer-getting-started project which as exactly that, and as simple as this:
Hope this helps and explains some of the things you’ve seen! Please let us know if you have any other questions!