Will It Vibe logoWill It Vibe?
DOCKER-017Low severity-4 points

apk add without --no-cache

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

apk add keeps the package index in the image unless --no-cache is used, adding size and requiring a separate cleanup step.

Why it matters

apk add keeps the APK index inside the image unless --no-cache is used, adding size and otherwise requiring a manual rm of /var/cache/apk. On Alpine images the difference is easy free savings.

How to fix it

Add --no-cache to each apk add (apk add --no-cache curl). That skips the local index entirely, so no separate cleanup step is needed.

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

Related Architecture & Best Practices checks