add match
This commit is contained in:
parent
d3f4e3574e
commit
d354d031d9
|
@ -75,8 +75,8 @@ def _get_dockerfile_contents(jobname, os_codename):
|
||||||
"""
|
"""
|
||||||
with open(join(path + jobname), "r") as file:
|
with open(join(path + jobname), "r") as file:
|
||||||
contents = file.read()
|
contents = file.read()
|
||||||
# remove any line containing CMD or ENTRYFILE keywords
|
# remove any line containing FROM or RUN keywords
|
||||||
re.sub(r"(?m)^(CMD|ENTRYFILE).*$", "", contents)
|
re.match(r"(?m)^(FROM|RUN).*$", "", contents)
|
||||||
|
|
||||||
return contents + {
|
return contents + {
|
||||||
"focal": dockerfile_extra_contents_focal,
|
"focal": dockerfile_extra_contents_focal,
|
||||||
|
|
Loading…
Reference in New Issue