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: |- description: |-
dcmerge is a tool to merge docker-compose files from multiple resources. dcmerge is a tool to merge docker-compose files from multiple resources.
It supports merging local files and remote files via HTTP/HTTPS. It supports merging local files and remote files via HTTP/HTTPS.
license: Apache 2.0 license: MIT
formats: formats:
- deb - deb
- rpm - rpm

View File

@@ -1,5 +1,4 @@
FROM scratch AS build FROM scratch AS build
ARG TARGETPLATFORM
COPY dcmerge-* /usr/bin/dcmerge COPY "${TARGETPLATFORM}/dcmerge" "/usr/bin/dcmerge"
ENTRYPOINT [ "/usr/bin/dcmerge" ] ENTRYPOINT [ "/usr/bin/dcmerge" ]