Skip to content

Commit

Permalink
Update Go build for Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 6, 2023
1 parent 310bb3e commit d31304d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.18 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand All @@ -22,7 +22,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 \
-X github.com/inlets/mixctl/version.GitCommit=${GIT_COMMIT} \
-X github.com/inlets/mixctl/version.Version=${VERSION} \
-X github.com/inlets/mixctl/version.Platform=${TARGETARCH}" \
-a -installsuffix netgo -o /usr/bin/mixctl
-o /usr/bin/mixctl

FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch as release
COPY --from=builder /usr/bin/mixctl /
Expand Down

0 comments on commit d31304d

Please sign in to comment.