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