Zero-config Ollama with pre-baked Jina Code Embeddings 1.5B, ready to serve on container start
1.2K
Minimal Ollama with pre-baked Jina Code Embeddings 1.5B — model ready to serve on container start.
Part of the Paparats MCP semantic code search platform. This image eliminates the need to install Ollama on your host or download models manually. Just docker run and start generating code embeddings.
alpine/ollama (~70 MB base), total ~1.5 GB including the modeldocker run -d -p 11434:11434 ibaz/paparats-ollama
Verify the model is ready:
curl http://localhost:11434/api/tags
# Should list "jina-code-embeddings" model
Generate embeddings:
curl http://localhost:11434/api/embed -d '{
"model": "jina-code-embeddings",
"input": "function authenticate(user, password) { ... }"
}'
| Spec | Value |
|---|---|
| Model | Jina Code Embeddings 1.5B |
| Source | jinaai/jina-code-embeddings-1.5b-GGUF |
| Parameters | 1.5B |
| Dimensions | 1536 |
| Context | 32,768 tokens (configured to 8,192) |
| Quantization | Q8_0 (~1.6 GB) |
| Languages | 15+ programming languages |
Supports task-specific prefixes for better relevance:
This image is designed to work with the Paparats semantic code search stack:
# Install the full stack with Docker Ollama (no host Ollama needed)
npm install -g @paparats/cli
paparats install --ollama-mode docker
Or use in a Docker Compose setup:
services:
ollama:
image: ibaz/paparats-ollama
ports:
- "11434:11434"
paparats:
image: ibaz/paparats-server
environment:
OLLAMA_URL: http://ollama:11434
ports:
- "9876:9876"
qdrant:
image: qdrant/qdrant
ports:
- "6333:6333"
This image works as a general-purpose code embedding server, independent of Paparats:
import requests
response = requests.post("http://localhost:11434/api/embed", json={
"model": "jina-code-embeddings",
"input": "async function fetchUser(id) { return await db.users.findById(id); }"
})
embedding = response.json()["embeddings"][0] # 1536-dimensional vector
Use it for:
Multi-stage Docker build for minimal image size:
ollama/ollama to download the GGUF model from HuggingFace and register it via ollama createalpine/ollama base (~70 MB)Result: ~1.5 GB image (vs ~5+ GB if using the full Ollama image with runtime download).
latest — most recent stable buildx.y.z — version-pinned releases (e.g., 0.2.0)Built-in health check polls /api/tags every 10 seconds:
docker inspect --format='{{.State.Health.Status}}' <container_id>
Content type
Image
Digest
sha256:da336d994…
Size
1.5 GB
Last updated
7 months ago
docker pull ibaz/paparats-ollama