Skip to content

Commit cbb0365

Browse files
updated docker files
1 parent 54dc612 commit cbb0365

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ services:
2828
build:
2929
context: .
3030
dockerfile: ollama.dockerfile
31+
args:
32+
- MODELS: "embeddinggemma mistral"
3133
container_name: ollama
3234
ports:
3335
- "11434:11434"
3436
restart: unless-stopped
3537
# persistent for caching models across restarts and preloading
3638
volumes:
3739
- ollama_models:/root/.ollama
38-
environment:
39-
- MODELS=embeddinggemma
40-
# duration to keep model in memory
41-
- OLLAMA_KEEP_ALIVE=24h
4240
networks:
4341
- utopia
4442

ollama.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ollama/ollama:0.12.7
22

33
# Preload specific models
4-
ENV MODELS="embeddinggemma"
4+
ARG MODELS="embeddinggemma"
55
ENV OLLAMA_KEEP_ALIVE=24h
66

77
# Pre-pull models at build time for Docker layer caching

0 commit comments

Comments
 (0)