From 02ae924b021f29c784c49341d7820a1970a84d45 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 31 Jan 2026 23:13:20 +0100 Subject: [PATCH] fix(Dockerfile): respect target platform --- .goreleaser.yaml | 2 +- Dockerfile.scratch | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0b67eca..3307f7d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -145,7 +145,7 @@ nfpms: description: |- dcmerge is a tool to merge docker-compose files from multiple resources. It supports merging local files and remote files via HTTP/HTTPS. - license: Apache 2.0 + license: MIT formats: - deb - rpm diff --git a/Dockerfile.scratch b/Dockerfile.scratch index 9403ec8..bc13fd8 100644 --- a/Dockerfile.scratch +++ b/Dockerfile.scratch @@ -1,5 +1,4 @@ FROM scratch AS build - -COPY dcmerge-* /usr/bin/dcmerge - +ARG TARGETPLATFORM +COPY "${TARGETPLATFORM}/dcmerge" "/usr/bin/dcmerge" ENTRYPOINT [ "/usr/bin/dcmerge" ] \ No newline at end of file