Skip to content

Commit

Permalink
update build_docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhewang1-intc committed Mar 21, 2024
1 parent caac56e commit fc7bffd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions scripts/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ if [ -z "${OLLAMA_SKIP_IMAGE_BUILD}" ]; then
-f Dockerfile \
-t ${ARCH_IMAGE_REPO}:$VERSION-rocm \
.

docker build \
--load \
--platform=linux/amd64 \
--build-arg=VERSION \
--build-arg=GOFLAGS \
--target runtime-oneapi \
-f Dockerfile \
-t ${ARCH_IMAGE_REPO}:$VERSION-oneapi \
.
fi
fi

Expand All @@ -75,12 +85,3 @@ if [ -z "${OLLAMA_SKIP_MANIFEST_CREATE}" ]; then
echo " ${ARCH_IMAGE_REPO}:$VERSION-rocm"
fi
fi
docker build \
--load \
--platform=linux/amd64 \
--build-arg=VERSION \
--build-arg=GOFLAGS \
--target runtime-oneapi \
-f Dockerfile \
-t ollama/ollama:$VERSION-oneapi \
.

0 comments on commit fc7bffd

Please sign in to comment.