Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
#!/bin/sh
set -eu
export VERSION=${VERSION:-0.0.0}
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
docker build \
--push \
--platform=linux/arm64,linux/amd64 \
--build-arg=GOFLAGS \
-f Dockerfile \
-t ollama/ollama -t ollama/ollama:$VERSION \
.