pip install without --no-cache-dir
Part of Architecture & Best Practices, which counts for 15% of the overall score. When this check fires it deducts 4 points from that category, once per scan, no matter how many places it turns up.
What it detects
pip caches downloaded wheels under ~/.cache/pip; without --no-cache-dir that cache is baked into the image and adds needless size.
Why it matters
pip stores downloaded wheels in ~/.cache/pip. Inside an image that cache is never reused and just adds size to the layer, which ships to every pull.
How to fix it
Add --no-cache-dir to each pip install (pip install --no-cache-dir -r requirements.txt). Pin versions in requirements.txt for reproducibility.
The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing
Does your repo trip this check?
Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.
Scan your repo