only copy deps for amd64
in build_linux.sh
This commit is contained in:
parent
82ca694d68
commit
cdf65e793f
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,10 @@ for TARGETARCH in ${BUILD_ARCH}; do
|
|||
.
|
||||
docker create --platform linux/$TARGETARCH --name builder-$TARGETARCH builder:$TARGETARCH
|
||||
docker cp builder-$TARGETARCH:/go/src/github.com/jmorganca/ollama/ollama ./dist/ollama-linux-$TARGETARCH
|
||||
docker cp builder-$TARGETARCH:/go/src/github.com/jmorganca/ollama/dist/deps/ ./dist/
|
||||
|
||||
if [ "$TARGETARCH" = "amd64" ]; then
|
||||
docker cp builder-$TARGETARCH:/go/src/github.com/jmorganca/ollama/dist/deps/ ./dist/
|
||||
fi
|
||||
|
||||
docker rm builder-$TARGETARCH
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue