2 ms·
> It’s sometimes said this Alpine stuff is a premature optimization, but in most cases it’s not even an optimization. I do use Debian Slim over Alpine without
by nickjj 5y ago
> It’s sometimes said this Alpine stuff is a premature optimization, but in most cases it’s not even an optimization.
I do use Debian Slim over Alpine without thinking but image size does matter in a lot of cases once you leave your dev box or start to use Kubernetes.
For example if you're using AWS Fargate images aren't cached[0]. That means every time you deploy your app a new pod is going to get created and it has to wait for your image to download.
Fargate already has a 30-40ish second spin up time inherit to the platform. Having to wait X seconds or even minutes more to download your app's image delays things quite a lot, especially if you have something like a pre-sync hook running to do something like running a database migration. Now every deploy pays this penalty twice.
[0]: https://github.com/aws/containers-roadmap/issues/696 https://github.com/aws/containers-roadmap/issues/696