From 1aa66320817516eb7621e7ee9faa58ea62c1942f Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 10 May 2024 17:03:18 +0530 Subject: [PATCH] feat : create llama3 model image (#1083) meta has released llama3 model, provide an option for users to download the image --- docker/ollama/llama3/Dockerfile | 4 ++++ docker/ollama/llama3/hooks/build | 3 +++ docker/ollama/llama3/hooks/push | 1 + 3 files changed, 8 insertions(+) create mode 100644 docker/ollama/llama3/Dockerfile create mode 100644 docker/ollama/llama3/hooks/build create mode 100644 docker/ollama/llama3/hooks/push diff --git a/docker/ollama/llama3/Dockerfile b/docker/ollama/llama3/Dockerfile new file mode 100644 index 00000000000..79ab8f9524c --- /dev/null +++ b/docker/ollama/llama3/Dockerfile @@ -0,0 +1,4 @@ +FROM --platform=$BUILDPLATFORM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull llama3" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file diff --git a/docker/ollama/llama3/hooks/build b/docker/ollama/llama3/hooks/build new file mode 100644 index 00000000000..d4c31798966 --- /dev/null +++ b/docker/ollama/llama3/hooks/build @@ -0,0 +1,3 @@ +#!/bin/bash +docker buildx create --use +docker buildx build --push --platform=linux/amd64,linux/arm64 -f $DOCKERFILE_PATH -t $IMAGE_NAME . \ No newline at end of file diff --git a/docker/ollama/llama3/hooks/push b/docker/ollama/llama3/hooks/push new file mode 100644 index 00000000000..a9bf588e2f8 --- /dev/null +++ b/docker/ollama/llama3/hooks/push @@ -0,0 +1 @@ +#!/bin/bash