Better base image udpate in build-container script

This commit is contained in:
Olivier Meunier
2025-11-06 11:26:01 +01:00
parent 3888af0ea6
commit 5b6a3c9714

View File

@@ -25,6 +25,7 @@ def work_container(image: str, arch: str):
container = check_output(
[
BUILDAH,
"--pull=newer",
"from",
f"--arch={arch}",
image,
@@ -55,9 +56,6 @@ def build_image(version: str, arch: str):
This builds an image using Readeck binary file for the given architecture.
"""
check_call([BUILDAH, "pull", f"--arch={arch}", BASE_IMAGE])
check_call([BUILDAH, "pull", f"--arch={arch}", ALPINE_IMAGE])
# Start with a busybox container
with work_container(BASE_IMAGE, arch) as container:
# Copy CA certificates