From 68d6af07d05c5eb28b03417328acf4cda4a62fe2 Mon Sep 17 00:00:00 2001 From: hodanov <1031hoda@gmail.com> Date: Wed, 13 Mar 2024 13:08:12 +0900 Subject: [PATCH] Replace 'Image.extend' to 'Image.dockerfile_commands'. --- app/setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/setup.py b/app/setup.py index 791933c..8212b39 100644 --- a/app/setup.py +++ b/app/setup.py @@ -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,