From cdf65e793f96c57b64ec7523b0b3f2d6e7b9e9e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 9 Mar 2024 17:55:22 -0800 Subject: [PATCH] only copy deps for `amd64` in `build_linux.sh` --- scripts/build_linux.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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