Add a new tool for parsing build packs and make sure reparsedockerfile writes it out as well
This commit is contained in:
parent
4eedd54b66
commit
7349d9d4cf
2 changed files with 22 additions and 0 deletions
|
@ -21,3 +21,6 @@ if image_and_tag_tuple is None or image_and_tag_tuple[0] is None:
|
|||
raise Exception('Missing FROM command in Dockerfile')
|
||||
|
||||
print serialize_dockerfile(parsed_dockerfile)
|
||||
|
||||
with open('Dockerfile.test.out', 'w') as dockerfileobj:
|
||||
dockerfileobj.write(serialize_dockerfile(parsed_dockerfile))
|
||||
|
|
Reference in a new issue