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. Works towards tern-tools#767. Super issue tern-tools#612. Signed-off-by: WangJL <hazard15020@gmail.com>
- Loading branch information