fix(Dockerfile): respect target platform

This commit is contained in:
2026-01-31 23:13:20 +01:00
parent df8b3b4a8b
commit b387c4b3b2
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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" ]