forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split multistage dockerfile for building images
This commit add 3 functions in tern\analyze\docker\dockerfile.py。 1. check_multistage_dockerfile() to check if the given dockerfile is a multistage dockerfile, return True or Flase and the index of FROM line. 2. get_multistage_image_dockerfiles() to split multistage dockerfile into seperate dockerfiles for build. 3. write_dockerfile_by_structure() to write a dockerfile by the dfobj structure. Fixes tern-tools#767. Signed-off-by: WangJL <hazard15020@gmail.com>
- Loading branch information
1 parent
044dc47
commit 41e9dad
Showing
2 changed files
with
52 additions
and
0 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