From 513c1713d4c724c4823aefc97abe0d122c48d4e5 Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Thu, 20 Aug 2026 11:45:15 +0200 Subject: [PATCH] Containerfile: trail FROM build_target Allow environments without --target support, which only read the last stage, to read from the specified stage Signed-off-by: Jakob Naucke --- Containerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containerfile b/Containerfile index d434168d..3d54561a 100644 --- a/Containerfile +++ b/Containerfile @@ -5,6 +5,7 @@ # SPDX-License-Identifier: CC0-1.0 ARG build_type=release +ARG build_target=operator # Unified builder stage — compiles all binaries in a single cargo invocation. FROM ghcr.io/trusted-execution-clusters/buildroot:fedora AS builder @@ -100,3 +101,6 @@ FROM quay.io/fedora/fedora:43 AS compute-pcrs COPY --from=compute-pcrs-data /output/compute-pcrs /usr/bin COPY --from=compute-pcrs-data /output/reference-values /reference-values ENTRYPOINT ["/usr/bin/compute-pcrs"] + +# Allow environments without --target support, which only read the last stage, to set the stage through the build arg +FROM ${build_target} AS final