mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 13:17:10 +00:00
Better base image udpate in build-container script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user