From 04414160558024919b274a503907ddb01e08795f Mon Sep 17 00:00:00 2001 From: Ben Caldwell Date: Thu, 29 Aug 2024 15:25:18 +0800 Subject: [PATCH] Add fix for $HOME panic. References: https://github.com/docker/genai-stack/issues/176 https://github.com/samchenghowing/Web-Study-Platform-with-GenAI-Stack/commit/437ad2a0dfd3d52a310c9bcff211eabe6ed1b799 --- pull_model.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull_model.Dockerfile b/pull_model.Dockerfile index 4c8a9e33..e59398f7 100644 --- a/pull_model.Dockerfile +++ b/pull_model.Dockerfile @@ -26,7 +26,7 @@ COPY < /dev/null || ./bin/ollama pull %s'" llm llm)) + (process/shell {:env {"OLLAMA_HOST" url "HOME" (System/getProperty "user.home")} :out :inherit :err :inherit} (format "bash -c './bin/ollama show %s --modelfile > /dev/null || ./bin/ollama pull %s'" llm llm)) (async/>!! done :stop)) (println "OLLAMA model only pulled if both LLM and OLLAMA_BASE_URL are set and the LLM model is not gpt")))