Skip to content

Commit

Permalink
fix: use old dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
louishalbritter committed Dec 17, 2024
1 parent c4231e2 commit aee2303
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
ARG GO_VERSION=1.23
ARG XX_VERSION=1.6.1

FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine AS builder

# copy build utilities
COPY --from=xx / /
FROM golang:1.23-alpine as builder

ARG TARGETPLATFORM
ARG REVISON
Expand All @@ -24,10 +17,9 @@ COPY cmd/ cmd/
COPY pkg/ pkg/

# build
ENV CGO_ENABLED=0
RUN xx-go build \
-ldflags "-s -w -X github.com/fluxcd/flagger/pkg/version.REVISION=${REVISON}" \
-a -o flagger ./cmd/flagger
RUN CGO_ENABLED=0 go build \
-ldflags "-s -w -X github.com/fluxcd/flagger/pkg/version.REVISION=${REVISON}" \
-a -o flagger ./cmd/flagger

FROM alpine:3.21

Expand Down

0 comments on commit aee2303

Please sign in to comment.