Merge pull request #79 from hodanov/feature/repair_modal_deprecation_warning
Replace 'Image.extend' to 'Image.dockerfile_commands'.
This commit is contained in:
		
						commit
						10b0157b79
					
				@ -136,11 +136,9 @@ base_stub = Image.from_dockerfile(
 | 
				
			|||||||
    path="Dockerfile",
 | 
					    path="Dockerfile",
 | 
				
			||||||
    context_mount=Mount.from_local_file("requirements.txt"),
 | 
					    context_mount=Mount.from_local_file("requirements.txt"),
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
stub.image = base_stub.extend(
 | 
					stub.image = base_stub.dockerfile_commands(
 | 
				
			||||||
    dockerfile_commands=[
 | 
					    "FROM base",
 | 
				
			||||||
        "FROM base",
 | 
					    "COPY config.yml /",
 | 
				
			||||||
        "COPY config.yml /",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    context_mount=Mount.from_local_file("config.yml"),
 | 
					    context_mount=Mount.from_local_file("config.yml"),
 | 
				
			||||||
).run_function(
 | 
					).run_function(
 | 
				
			||||||
    build_image,
 | 
					    build_image,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user