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
8 changes: 6 additions & 2 deletions Dockerfile.marketplace
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM golang:1.25.9-alpine AS build
# Build on the native host arch (BUILDPLATFORM) and cross-compile the Go binary
# to TARGETARCH. CGO is disabled below, so this needs no cross toolchain and
# avoids slow QEMU emulation. buildx injects BUILDPLATFORM/TARGETARCH.
FROM --platform=$BUILDPLATFORM golang:1.25.9-alpine AS build

ARG TARGETARCH
ARG RELEASE_VERSION=2025-10-15T17-29-55Z
ARG COMMIT_ID=9e49d5e7a648f00e26f2246f4dc28e6b07f8c84a
ARG SHORT_COMMIT_ID=9e49d5e7a648
Expand All @@ -20,7 +24,7 @@ RUN set -eux; \
ldflags="${ldflags} -X github.com/minio/minio/cmd.ShortCommitID=${SHORT_COMMIT_ID}"; \
ldflags="${ldflags} -X github.com/minio/minio/cmd.GOPATH=/go"; \
ldflags="${ldflags} -X github.com/minio/minio/cmd.GOROOT=/usr/local/go"; \
GOOS=linux GOARCH=amd64 go build -tags kqueue -trimpath --ldflags "${ldflags}" -o /out/minio .
GOOS=linux GOARCH=${TARGETARCH} go build -tags kqueue -trimpath --ldflags "${ldflags}" -o /out/minio .

FROM alpine:3.23

Expand Down
Loading