@@ -45,8 +45,7 @@ def get_dockerfiles():
4545 filename = file_info ['filename' ]
4646 print (filename )
4747 if "Dockerfile" in filename and not "windows" in filename :
48- file_dir = filename .replace ("Dockerfile" , "" )
49- dockerfiles .append (file_dir )
48+ dockerfiles .append (filename )
5049 return dockerfiles
5150
5251
@@ -69,15 +68,15 @@ def main():
6968 sys .stdout .flush ()
7069 log_file = dockerfile .replace (docker_dir ,"" ).replace ("/" , "_" )
7170 log_file = "{}.log" .format (log_file )
72- cmd = f "docker build --no-cache=true { dockerfile } "
71+ cmd = "docker build --no-cache=true -f {dockerfile} ." . format ( dockerfile = dockerfile )
7372 if "buildx" in dockerfile :
7473 # if "buildx" is part of the path, we want to use the new buildx build system and build
7574 # for both amd64 and arm64.
7675 cmd = "docker buildx create --use"
7776 run_command (cmd , log_file )
7877 cmd = "docker buildx inspect --bootstrap"
7978 run_command (cmd , log_file )
80- cmd = f "docker buildx build --platform linux/arm64,linux/amd64 --no-cache=true { dockerfile } "
79+ cmd = "docker buildx build --platform linux/arm64,linux/amd64 --no-cache=true -f {dockerfile} ." . format ( dockerfile = dockerfile )
8180 status = run_command (cmd , log_file )
8281 results [dockerfile ] = status
8382 if status != 0 :
0 commit comments