Merge pull request #26 from doringeman/support-native-platform

This commit is contained in:
Dorin-Andrei Geman 2025-04-30 19:30:45 +03:00 committed by GitHub
commit 4c3ffbfa53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# Project variables
APP_NAME := model-runner
GO_VERSION := 1.23.7
LLAMA_SERVER_VERSION := v0.0.4-rc2-cpu
LLAMA_SERVER_VERSION := v0.0.4-cpu
TARGET_OS := linux
TARGET_ARCH := amd64
TARGET_ARCH := $(shell uname -m 2>/dev/null || echo "amd64")
ACCEL := cpu
DOCKER_IMAGE := go-model-runner:latest
LLAMA_BINARY := /com.docker.llama-server.native.$(TARGET_OS).$(ACCEL).$(TARGET_ARCH)
@ -36,7 +36,7 @@ test:
# Build Docker image
docker-build:
docker build --platform linux/amd64 \
docker build \
--build-arg LLAMA_SERVER_VERSION=$(LLAMA_SERVER_VERSION) \
--build-arg LLAMA_BINARY_PATH=$(LLAMA_BINARY) \
-t $(DOCKER_IMAGE) .