diff --git a/scripts/build_linux.sh b/scripts/build_linux.sh index 77e21d40..e6db485a 100755 --- a/scripts/build_linux.sh +++ b/scripts/build_linux.sh @@ -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