From 272010771853074dba881fa70a7b03f9ee604cb0 Mon Sep 17 00:00:00 2001 From: Andy Asp Date: Thu, 30 May 2024 11:29:48 -0400 Subject: [PATCH] Bring image build argument outside of FROM step --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 55215c560..22a6a17d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +ARG BASEIMAGE + FROM golang:1.22-bookworm AS build ARG TARGETOS @@ -8,7 +10,6 @@ COPY . /src/rollout-operator WORKDIR /src/rollout-operator RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make ${BUILDTARGET} -ARG BASEIMAGE FROM ${BASEIMAGE} COPY --from=build /src/rollout-operator/rollout-operator /bin/rollout-operator