RFE: dnf install --container-build #2091
Labels
Priority: LOW
RFE
Request For Enhancement (as opposed to a bug)
Triaged
Someone on the DNF 5 team has read the issue and determined the next steps to take
Most Dockerfiles has:
But this leaves various unnecessary files in the image and the layers. Even
creates even more messy layers (unless the container image is squashed).
To produce small container images, users can do
(you can read more about this at e.g., https://opensource.com/article/18/7/building-container-images )
But this construction is clumsy.
It would be nice (and likely easy to implement) to have option like
--container-build
so you can do:that will clean caches at the end of the transaction, knowing that this command is called in the build phase of the container, and we want to produce a minimal footprint on disk.
The text was updated successfully, but these errors were encountered: