Skip to content

Commit

Permalink
Add Dockerfile (argoproj-labs#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Wilson Wu <[email protected]>
  • Loading branch information
wilsonwu committed Dec 18, 2023
1 parent 2e239da commit 0197975
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM --platform=$BUILDPLATFORM golang:1.21.5 as builder

ENV GO111MODULE=on
ARG TARGETARCH

WORKDIR /app

COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=$(TARGETARCH) go build -ldflags "-s -w" -o rollouts-plugin-trafficrouter-contour-linux-$(TARGETARCH) .

FROM alpine:3.19.0

COPY --from=builder /app/rollouts-plugin-trafficrouter-contour-linux-$(TARGETARCH) /bin/

0 comments on commit 0197975

Please sign in to comment.