dockerfilelint icon indicating copy to clipboard operation
dockerfilelint copied to clipboard

pip should be paired with pip cache cleanup

Open darkk opened this issue 8 years ago • 1 comments

That's one more heuristics to reduce image size, pip usually places lots of temporary files to /root/.cache while installing packages.

darkk avatar Nov 17 '17 09:11 darkk

c.f. https://github.com/pypa/pip/issues/4685

at the moment, the best way to achieve this is to require use of --no-cache-dir, but that isnt as neat if multiple pip commands are needed, as subsequent commands wont have a cache to re-use

jayvdb avatar Dec 16 '18 03:12 jayvdb