From 2d85024923a64bf136a868fd54419a967f57649d Mon Sep 17 00:00:00 2001 From: LangChain4j Date: Sat, 23 Dec 2023 18:48:24 +0100 Subject: [PATCH] Pre-built ollama models (#419) --- docker/ollama/codellama/Dockerfile | 4 ++++ docker/ollama/llama2/Dockerfile | 4 ++++ docker/ollama/mistral/Dockerfile | 4 ++++ docker/ollama/orca-mini/Dockerfile | 4 ++++ docker/ollama/phi/Dockerfile | 4 ++++ 5 files changed, 20 insertions(+) create mode 100644 docker/ollama/codellama/Dockerfile create mode 100644 docker/ollama/llama2/Dockerfile create mode 100644 docker/ollama/mistral/Dockerfile create mode 100644 docker/ollama/orca-mini/Dockerfile create mode 100644 docker/ollama/phi/Dockerfile diff --git a/docker/ollama/codellama/Dockerfile b/docker/ollama/codellama/Dockerfile new file mode 100644 index 000000000..1afc6c189 --- /dev/null +++ b/docker/ollama/codellama/Dockerfile @@ -0,0 +1,4 @@ +FROM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull codellama" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file diff --git a/docker/ollama/llama2/Dockerfile b/docker/ollama/llama2/Dockerfile new file mode 100644 index 000000000..ec3409fe4 --- /dev/null +++ b/docker/ollama/llama2/Dockerfile @@ -0,0 +1,4 @@ +FROM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull llama2" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file diff --git a/docker/ollama/mistral/Dockerfile b/docker/ollama/mistral/Dockerfile new file mode 100644 index 000000000..dae05504d --- /dev/null +++ b/docker/ollama/mistral/Dockerfile @@ -0,0 +1,4 @@ +FROM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull mistral" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file diff --git a/docker/ollama/orca-mini/Dockerfile b/docker/ollama/orca-mini/Dockerfile new file mode 100644 index 000000000..ead7a89ee --- /dev/null +++ b/docker/ollama/orca-mini/Dockerfile @@ -0,0 +1,4 @@ +FROM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull orca-mini" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file diff --git a/docker/ollama/phi/Dockerfile b/docker/ollama/phi/Dockerfile new file mode 100644 index 000000000..14a57d1b7 --- /dev/null +++ b/docker/ollama/phi/Dockerfile @@ -0,0 +1,4 @@ +FROM ollama/ollama:latest +RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull phi" +ENTRYPOINT ["/bin/ollama"] +CMD ["serve"] \ No newline at end of file