diff --git a/util/dockerfileparse.py b/util/dockerfileparse.py index 3bb9ed35a..4a08e5dd8 100644 --- a/util/dockerfileparse.py +++ b/util/dockerfileparse.py @@ -1,7 +1,7 @@ import re LINE_CONTINUATION_REGEX = re.compile('\s*\\\s*\n') -COMMAND_REGEX = re.compile('([A-Z]+)\s(.*)') +COMMAND_REGEX = re.compile('([A-Za-z]+)\s(.*)') COMMENT_CHARACTER = '#' @@ -70,7 +70,7 @@ def parse_dockerfile(contents): for line in lines: match_command = COMMAND_REGEX.match(line) if match_command: - command = match_command.group(1) + command = match_command.group(1).upper() parameters = match_command.group(2) commands.append({