Ulrar / hassio-addons

Repo for hassio addons
MIT License
23 stars 10 forks source link

Introduce builder and runner stage in Dockerfile for smaller image size #3

Closed marecabo closed 4 years ago

marecabo commented 4 years ago

This change introduces a builder stage and a runner stage in the Dockerfile to bring down the final image size from about 1 GB to 280 MB. Thanks for already separating build and run dependencies so well, that made it pretty straightforward.

I tested this Dockerfile on a RPi3B+ 32bit (armv7) and on a RPi4B 64bit (aarch64) (without libspotify on the latter).

Please feel free to discuss.