Skip to content

DF004 false positive with distcleanΒ #3

@Pesa

Description

@Pesa
FROM ubuntu:24.04
RUN apt-get install -U -y --no-install-recommends bash && apt-get distclean

droast incorrectly warns:

  WARN  [DF004]  apt cache not cleaned after install β€” adds unnecessary layer size
             at Dockerfile:2
             πŸ’¬ "Not cleaning the apt cache is like finishing a meal and leaving all the wrappers in the container. Your image is now a trash can. A very expensive trash can stored in ECR."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions