From a07e3dad56e319953d53c15ff8def172ca63e22f Mon Sep 17 00:00:00 2001 From: Rin Oliver Date: Fri, 9 Oct 2026 08:33:35 -0500 Subject: [PATCH] Download the Orka CLI for the target architecture CI builds linux/amd64 and linux/arm64 images, but the Dockerfile always downloaded the linux/amd64 orka3 build, so the arm64 image shipped an x86 CLI. Use TARGETARCH, falling back to amd64 for non-BuildKit builds. Co-Authored-By: Claude Opus 5.5 (1M context) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 356b57f..a915494 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM golang:1.25.3 as builder WORKDIR /workspace ARG ORKA_VERSION=3.1.0 +ARG TARGETARCH # Make it runnable on a distroless image/without libc ENV CGO_ENABLED=0 @@ -13,7 +14,7 @@ RUN go mod download RUN set -eux \ && curl --location --fail --remote-name \ - https://cli-builds-public.s3.eu-west-1.amazonaws.com/official/${ORKA_VERSION}/orka3/linux/amd64/orka3.tar.gz \ + https://cli-builds-public.s3.eu-west-1.amazonaws.com/official/${ORKA_VERSION}/orka3/linux/${TARGETARCH:-amd64}/orka3.tar.gz \ && tar -xzf orka3.tar.gz -C /usr/local/bin COPY . .