Closed mykaul closed 6 months ago
what are we trying to optimize here ? build time ?
what are we trying to optimize here ? build time ?
Not optimize, reduce point of failures (I've failed twice as some repos did not respond. Less packages means less issues). I think it also helps later, with understanding when things change. (I'm still trying to figure out why Scylla container has gcc installed, for example).
what are we trying to optimize here ? build time ?
Not optimize, reduce point of failures (I've failed twice as some repos did not respond. Less packages means less issues). I think it also helps later, with understanding when things change. (I'm still trying to figure out why Scylla container has gcc installed, for example).
anyhow it's build time, if it build with those, it's o.k.
we ship a different image, where we don't install anything else
Seen @ https://github.com/docker-library/python/blob/7899dbafd386ee264bd33574aafcd0f1369b2e21/3.11/slim-bullseye/Dockerfile#L33 Instead of installing all recommended packages, we explicitly mention what we need. It reduces the download of 10's of build-time dependencies.
What I'm not sure of - are we missing features, that are not compiled as deps are not found? (encryption comes to mind).