mirror of
https://github.com/ollama/ollama.git
synced 2025-03-18 22:01:47 +01:00
16 lines
393 B
Bash
Executable File
16 lines
393 B
Bash
Executable File
#!/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=VERSION \
|
|
--build-arg=GOFLAGS \
|
|
-f Dockerfile \
|
|
-t ollama/ollama -t ollama/ollama:$VERSION \
|
|
.
|