"vscode:/vscode.git/clone" did not exist on "932e263725b26904e7eb5e5ad35efc6f11b5de21"
push_docker.sh 393 Bytes
Newer Older
1
2
3
4
5
#!/bin/sh

set -eu

export VERSION=${VERSION:-0.0.0}
6
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
7

8
docker build \
9
10
11
12
13
14
15
    --push \
    --platform=linux/arm64,linux/amd64 \
    --build-arg=VERSION \
    --build-arg=GOFLAGS \
    -f Dockerfile \
    -t ollama/ollama -t ollama/ollama:$VERSION \
    .