mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-03 19:57:35 +00:00
15 lines
515 B
Docker
15 lines
515 B
Docker
# Containerfile used to build our all in one ollama image to run tests in CI
|
|
#
|
|
# podman build --platform linux/amd64 -f ./ollama-with-models.containerfile -t ollama-with-models .
|
|
#
|
|
FROM --platform=linux/amd64 ollama/ollama:latest
|
|
|
|
# Start ollama and pull models in a single layer
|
|
RUN ollama serve & \
|
|
sleep 5 && \
|
|
ollama pull llama3.2:3b-instruct-fp16 && \
|
|
ollama pull nomic-embed-text:v1.5 && \
|
|
ollama pull llama-guard3:1b
|
|
|
|
# Set the entrypoint to start ollama serve
|
|
ENTRYPOINT ["ollama", "serve"]
|