Always update base images in build-container script

This commit is contained in:
Olivier Meunier
2025-11-06 10:18:37 +01:00
parent 4498d97e61
commit 3888af0ea6

View File

@@ -12,7 +12,7 @@ from pathlib import Path
from subprocess import check_call, check_output
BASE_IMAGE = "docker.io/library/busybox:uclibc"
ALPINE_IMAGE = "docker.io/library/alpine:edge"
ALPINE_IMAGE = "docker.io/library/alpine:latest"
BUILDAH = "/usr/bin/buildah"
SKOPEO = "/usr/bin/skopeo"
@@ -55,6 +55,9 @@ 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