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
toSkipLayers
:
strategy: dockerStrategy: imageOptimizationPolicy: SkipLayers