diff --git a/act_runtime/Dockerfile b/act_runtime/Dockerfile index 2c6dc2b..487c189 100644 --- a/act_runtime/Dockerfile +++ b/act_runtime/Dockerfile @@ -4,6 +4,7 @@ ARG BASE_IMAGE=node:23-bookworm-slim FROM ${BASE_IMAGE} ARG LLVM_VERSION=16 +ARG TARGETARCH # common tools RUN --mount=type=cache,target=/var/lib/apt \ @@ -45,6 +46,13 @@ RUN --mount=type=cache,target=/var/lib/apt \ # AWS CLI RUN --mount=type=cache,target=/tmp \ - curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" && \ - unzip /tmp/awscliv2.zip -d /tmp && \ + if [ "${TARGETARCH}" = "amd64" ]; then \ + curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \ + elif [ "${TARGETARCH}" = "arm64" ]; then \ + curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \ + else \ + echo "Unsupported architecture: ${TARGETARCH}"; \ + exit 1; \ + fi && \ + unzip -o /tmp/awscliv2.zip -d /tmp && \ /tmp/aws/install