-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
This is not a bug on its own, but rather a question of efficiency.
If I add some python library that requires binary objects to be built or run (examples: lxml requires libxml2 and libxslt, postgres psycopg2 requires libpq to run and postgresql-dev to build, etc) then I would have to essentially repeat all the installation and removal rituals in my descendant image. At the same time it would be more efficient to just have a custom dockerfile with the cleanup done once in the last stage of the build, and just docker-squash the resulting image.
Currently I see several ways out of this dilemma:
- provide template dockerfiles for that particular approach, where you could edit the dockerfile, adding the necessary libraries between the build tools installation command and the cleanup, and let the user squash the image after build;
- add an ARG so that the installed tools would be controlled (added) by this build time argument, and this would not even require squashing the image.
There might be other ways of doing it, any ideas/suggestions?
Metadata
Metadata
Assignees
Labels
No labels