Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
##
## Build
##
FROM --platform=$BUILDPLATFORM goreleaser/goreleaser:v2.18.3 AS build
FROM --platform=$BUILDPLATFORM golang:1.27-alpine AS build

RUN apk add --no-cache git make
COPY --from=goreleaser/goreleaser:v2.18.3 /usr/bin/goreleaser /usr/bin/goreleaser

ARG TARGETOS
ARG TARGETARCH
Expand All @@ -16,7 +19,7 @@ ARG REVISION=unknown
WORKDIR /app

COPY . .
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH GOTOOLCHAIN=go1.27.2+auto goreleaser build --snapshot="${BUILD_SNAPSHOT}" --single-target -o extension
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH goreleaser build --snapshot="${BUILD_SNAPSHOT}" --single-target -o extension

##
## Runtime
Expand Down
Loading