Skip to content

Commit

Permalink
Bring image build argument outside of FROM step
Browse files Browse the repository at this point in the history
  • Loading branch information
andyasp committed May 30, 2024
1 parent 0693c0f commit 2720107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG BASEIMAGE

FROM golang:1.22-bookworm AS build

ARG TARGETOS
Expand All @@ -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
Expand Down

0 comments on commit 2720107

Please sign in to comment.