Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Support optional override of the target archictures
Daniel Hiltgen9754ae4c899c
diff --git a/scripts/build_linux.sh b/scripts/build_linux.shindex b9cdc23cf..846103eaa 100755--- a/scripts/build_linux.sh+++ b/scripts/build_linux.sh@@ -5,9 +5,10 @@ set -euexport VERSION=${VERSION:-0.0.0}export GOFLAGS="'-ldflags=-w -s \"-X=github.com/jmorganca/ollama/version.Version=$VERSION\" \"-X=github.com/jmorganca/ollama/server.mode=release\"'"+BUILD_ARCH=${BUILD_ARCH:-"amd64 arm64"}mkdir -p dist-for TARGETARCH in amd64 arm64; do+for TARGETARCH in ${BUILD_ARCH}; dodocker build --platform=linux/$TARGETARCH --build-arg=GOFLAGS --build-arg=CGO_CFLAGS -f Dockerfile.build -t builder:$TARGETARCH .docker create --platform linux/$TARGETARCH --name builder-$TARGETARCH builder:$TARGETARCHdocker cp builder-$TARGETARCH:/go/src/github.com/jmorganca/ollama/ollama ./dist/ollama-linux-$TARGETARCH