Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 553 Bytes

builds-strategy-docker-squash-layers.adoc

File metadata and controls

19 lines (15 loc) · 553 Bytes

Squash layers with docker builds

Docker builds normally create a layer representing each instruction in a Dockerfile. Setting the imageOptimizationPolicy to SkipLayers will merge all instructions into a single layer on top of the base image.

Procedure
  • Set the imageOptimizationPolicy to SkipLayers:

strategy:
  dockerStrategy:
    imageOptimizationPolicy: SkipLayers