Have the reparse tool also display the from line
This commit is contained in:
parent
913b3e472f
commit
bdbfb0c6d3
1 changed files with 5 additions and 0 deletions
|
@ -15,4 +15,9 @@ for index, command in reversed(list(enumerate(parsed_dockerfile.commands))):
|
|||
parsed_dockerfile.commands.insert(new_command_index, env_command)
|
||||
break
|
||||
|
||||
image_and_tag_tuple = parsed_dockerfile.get_image_and_tag()
|
||||
print image_and_tag_tuple
|
||||
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)
|
||||
|
|
Reference in a new issue