Patent ID: 11960870
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer system comprising:
one or more computer processors;
one or more computer readable storage media; and
program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to obtain a first group of operations that are performed in respective layers comprised in a base image;
program instructions to obtain a second group of operations that are performed in respective layers not comprised in the base image;
program instructions to optimize the second group of operations based on a comparison between the first and second groups of operations;
program instructions, in response to an operation of the second group of operations being repeated within the first group of operations, to classify the operation into a first type or a second type, the first type representing an operation changing the destination container image, and the second type representing an operation not changing the destination container image;
program instructions, in response to the operation being classified as the first type, to compare the operation with the first group of operations;
program instructions, in response to the operation being classified as the second type, to delete the operation from the second group; and
program instructions to generate a destination container image based on the optimized second group of operations and the base image.