Containerfile: support --build-arg BUILDER_IMAGE=quay.io/... too

This will make it easier to override the builder image if that's
desired too.
This commit is contained in:
Dusty Mabe 2025-04-29 15:29:18 -04:00
parent ebaedc73ed
commit b5275ecaf7
No known key found for this signature in database
GPG key ID: 3302DBD73952E671

View file

@ -13,10 +13,11 @@
# Note we also support --build-arg REPOS_IMAGE=quay.io/fedora/fedora:41 here
# since konflux doesn't yet support --from.
ARG REPOS_IMAGE=quay.io/fedora/fedora:rawhide
ARG BUILDER_IMAGE=quay.io/fedora/fedora:rawhide
FROM $REPOS_IMAGE as repos
# BOOTSTRAPPING: This can be any image that has rpm-ostree and selinux-policy-targeted.
FROM quay.io/fedora/fedora:rawhide as builder
FROM $BUILDER_IMAGE as builder
RUN dnf -y install rpm-ostree selinux-policy-targeted
ARG MANIFEST=fedora-standard
# The input git repository has .repo files committed to git rpm-ostree has historically