Merge pull request #79 from hodanov/feature/repair_modal_deprecation_warning

Replace 'Image.extend' to 'Image.dockerfile_commands'.
This commit is contained in:
hodanov 2024-03-13 13:08:59 +09:00 committed by GitHub
commit 10b0157b79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,11 +136,9 @@ base_stub = Image.from_dockerfile(
path="Dockerfile",
context_mount=Mount.from_local_file("requirements.txt"),
)
stub.image = base_stub.extend(
dockerfile_commands=[
"FROM base",
"COPY config.yml /",
],
stub.image = base_stub.dockerfile_commands(
"FROM base",
"COPY config.yml /",
context_mount=Mount.from_local_file("config.yml"),
).run_function(
build_image,