Add preloaded Ollama image workflow
Publish container image / publish (push) Successful in 17m32s

This commit is contained in:
Mikhail Yevchenko committed 2026-08-24 10:39:05 +03:00
1 parent 7120927224
commit 30ba55de56
3 files changed
+101

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
ARG BASE_IMAGE=ollama/ollama:latest
FROM ${BASE_IMAGE}
ARG MODEL=orcarouter/Qwen3.8-27B-Uncensored:q3_K_L
RUN set -eu; \
ollama serve >/tmp/ollama.log 2>&1 & \
server_pid=$!; \
trap 'kill "$server_pid"; wait "$server_pid" || true' 0; \
until ollama list >/dev/null 2>&1; do sleep 1; done; \
ollama pull "${MODEL}"; \
rm -f /tmp/ollama.log