After installing packages with apt-get or apt, remove /var/lib/apt/lists in the same layer to keep images small and reduce attack surface.
RUN instruction.apt-get install or apt install and the last segment that removes /var/lib/apt/lists./var/lib/apt/lists using rm with -r/-rf (any order) or find with -delete.DL3009 at the instruction line.(c) 2025 Asymmetric Effort, LLC. scaldwell@asymmetric-effort.com
