From 021dfaf045de2d8c8f4e6009e8787a73fc5e9fba Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Fri, 15 Nov 2024 11:56:03 -0400 Subject: [PATCH] trget aach --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 424cbf9..270775e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:alpine AS builder -ARG BUILDARCH +ARG TARGETARCH ARG version=not-set ARG SHORTSHA=not-set WORKDIR /app @@ -9,7 +9,7 @@ COPY . . RUN go build -o bin/ddns \ -ldflags "-X main.Shortsha=${SHORTSHA} \ -X main.Version=${version} \ - -X main.Aarch=${BUILDARCH}" ./cmd + -X main.Aarch=${TARGETARCH}" ./cmd FROM alpine AS runner COPY --from=builder /app/bin/ddns /usr/bin/