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