-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imagebuildah: change when we decide to create layers
Change our strategy for creating layers from: * Always create layers for ADD, COPY, and RUN to: * Create layers for ADD, COPY, RUN, and WORKDIR if they made changes to the filesystem. This includes creating the WORKDIR directory if it doesn't already exist. It's often a subtle difference, but it fixes cases where a WORKDIR instruction wasn't followed by RUN, so we didn't end up accidentally creating it ourselves. We're not perfect here, because our RUN creates targets for bind mounts that `docker build` avoids, but we're closer than we were before. Signed-off-by: Nalin Dahyabhai <[email protected]>
- Loading branch information
Showing
3 changed files
with
92 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters