"vscode:/vscode.git/clone" did not exist on "20ed0cd5fbab507757bc9a7a9efd7aa86067fc45"
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 \
    .