layercheck

v0.1.0
io.github.CloudCorpRecords/layercheck Checked 2 hours ago Published 29 days ago

Dockerfile layer and waste analyzer: layer sizes biggest first, with deterministic waste flags.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_dockerfile_layers

Analyze a Dockerfile's layers: parse its instructions, rank layer sizes biggest first when sizes are supplied, and flag wasted layers with deterministic checks (consecutive RUNs, broad copies before the install step, leftover apt lists, ADD used for local files).

ParameterTypeDescription
dockerfile *stringThe Dockerfile text
layer_sizesarraySize in bytes of each layer-producing instruction (RUN, COPY, ADD), in Dockerfile order, as docker history would report them; length must equal the number of layer-producing instructions