layercheck
v0.1.0Dockerfile 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).
| Parameter | Type | Description |
|---|---|---|
dockerfile * | string | The Dockerfile text |
layer_sizes | array | Size 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 |