Skip to content

Commit 3df299b

Browse files
committed
standalone: fix portability for arm64 platforms
On Linux, uname -m reports "aarch64" (vs. the "arm64" reported on macOS). Signed-off-by: Jacob Howard <jacob.howard@docker.com>
1 parent 8ac3bc0 commit 3df299b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG GO_VERSION=1.24.2
44
ARG LLAMA_SERVER_VERSION=latest
5-
ARG LLAMA_BINARY_PATH=/com.docker.llama-server.native.linux.cpu.amd64
5+
ARG LLAMA_BINARY_PATH=/com.docker.llama-server.native.linux.cpu.${TARGETARCH}
66

77
FROM golang:${GO_VERSION}-bookworm AS builder
88

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ APP_NAME := model-runner
33
GO_VERSION := 1.23.7
44
LLAMA_SERVER_VERSION := v0.0.4-cpu
55
TARGET_OS := linux
6-
TARGET_ARCH := $(shell uname -m 2>/dev/null || echo "amd64")
6+
TARGET_ARCH := $(shell uname -m 2>/dev/null | sed 's/aarch64/arm64/g' || echo "amd64")
77
ACCEL := cpu
88
DOCKER_IMAGE := go-model-runner:latest
99
LLAMA_BINARY := /com.docker.llama-server.native.$(TARGET_OS).$(ACCEL).$(TARGET_ARCH)

0 commit comments

Comments
 (0)